Skip to content

Commit b6c580e

Browse files
authored
Merge pull request Sub6Resources#903 from tneotia/bugfix/784-nested-header-font
Fix font size issue with nested header and font (Sub6Resources#784)
2 parents 574205f + fd42bfe commit b6c580e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/styled_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ StyledElement parseStyledElement(
188188
ExpressionMapping.namedColorToColor(element.attributes['color']!) :
189189
null,
190190
fontFamily: element.attributes['face']?.split(",").first,
191-
fontSize: numberToFontSize(element.attributes['size'] ?? ''),
191+
fontSize: element.attributes['size'] != null ? numberToFontSize(element.attributes['size']!) : null,
192192
);
193193
break;
194194
case "h1":

0 commit comments

Comments
 (0)