Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 18:53:19 +00:00
co-authored by renee-png
parent 8ed07701ae
commit bd0cf78ea4
+2 -1
View File
@@ -102,9 +102,10 @@ function run(text: string, opts: { bold?: boolean; italic?: boolean; underline?:
});
}
function p(text: string, opts: { bold?: boolean; align?: (typeof AlignmentType)[keyof typeof AlignmentType] } = {}) {
function p(text: string, opts: { bold?: boolean; align?: (typeof AlignmentType)[keyof typeof AlignmentType]; indent?: number } = {}) {
return new Paragraph({
alignment: opts.align,
indent: opts.indent ? { left: opts.indent } : undefined,
children: [run(text, { bold: opts.bold })],
});
}