Skip to content

Commit 44925e2

Browse files
committed
fix(info): check underline attribute properly
1 parent f159fa2 commit 44925e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/xml-slide-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class XmlSlideHelper {
233233
const rPr = run.getElementsByTagName('a:rPr')[0];
234234
if (rPr) {
235235
const isBold = rPr.getAttribute('b') === '1';
236-
const isUnderlined = rPr.getAttribute('u') === '1';
236+
const isUnderlined = rPr.getAttribute('u');
237237
const isItalic = rPr.getAttribute('i') === '1';
238238
const fontSize = parseInt(rPr.getAttribute('sz') || '0') / 100; // Convert to points
239239

0 commit comments

Comments
 (0)