Skip to content

Commit b0e3039

Browse files
authored
Merge pull request #360 from ilhany359/htmlElementRemoveSpace
Remove space delimeters in font description
2 parents a428e6d + 1daec02 commit b0e3039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/de/muenchen/allg/itd51/wollmux/ui/HTMLElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public FontDescriptor getFontDescriptor()
7878
{
7979
try
8080
{
81-
fontDescriptor.Height = Short.valueOf(o.toString().replaceAll("pt", ""));
81+
fontDescriptor.Height = Short.valueOf(o.toString().replaceAll("pt", "").replaceAll(" ", ""));
8282
} catch (NumberFormatException ex)
8383
{
8484
LOGGER.info("parsing font height failed due number format exception, trying to parse string %s", o.toString());

0 commit comments

Comments
 (0)