Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit c6038ff

Browse files
hkielOpenModelica-Hudson
authored andcommitted
fix creation of zip file
use dominant_baseline instead of alignment_baseline to circumvent SVG display flaw in Firefox Belonging to [master]: - #2761
1 parent dd78c08 commit c6038ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Examples/GenerateDoc.mos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,6 @@ system("mkdir -p " + dirs);
543543
system("cp '" + py + "' '" + self + "' .");
544544
"tar";
545545
dirs;
546-
cmd := "find . Icons -maxdepth 1 \\( -name '*.html' -o '*.svg' \\) -print | zip -qr ModelicaDocumentation.zip style.css -@ Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
546+
cmd := "find . -maxdepth 1 -name '*.html' -print | zip -qr ModelicaDocumentation.zip style.css -@ Icons " + dirs + " GenerateDoc.mos generate_icons.py fix-case-sensitive.py FindFiles.log tidy.filtered tidy.links";
547547
system(cmd);
548548
getErrorString();

Examples/generate_icons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def getSvgFromGraphics(dwg, graphics, minX, maxY, includeInvisibleText, transfor
637637
elif style == "TextStyle.UnderLine":
638638
extra['text-decoration'] = 'underline'
639639

640-
extra['alignment_baseline'] = "middle"
640+
extra['dominant_baseline'] = "middle"
641641

642642
if graphics['horizontalAlignment'] == "TextAlignment.Left":
643643
extra['text_anchor'] = "start"

0 commit comments

Comments
 (0)