Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Mar 18, 2023
1 parent 6bdb6fe commit d11ce22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen-xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ function genXmlTextRunProperties (opts: ObjectOptions | TextPropsOptions, isDefa

// BEGIN runProperties (ex: `<a:rPr lang="en-US" sz="1600" b="1" dirty="0">`)
runProps += '<' + runPropsTag + ' lang="' + (opts.lang ? opts.lang : 'en-US') + '"' + (opts.lang ? ' altLang="en-US"' : '')
runProps += opts.fontSize ? ` sz="${Math.round(opts.fontSize * 100)}"` : '' // NOTE: Use round so sizes like '7.5' wont cause corrupt pres.
runProps += opts.fontSize ? ` sz="${Math.round(opts.fontSize * 100)}"` : '' // NOTE: Use round so sizes like '7.5' wont cause corrupt presentations
runProps += opts?.bold ? ` b="${opts.bold ? '1' : '0'}"` : ''
runProps += opts?.italic ? ` i="${opts.italic ? '1' : '0'}"` : ''

Expand Down

0 comments on commit d11ce22

Please sign in to comment.