Skip to content

Commit 6661bd0

Browse files
author
Shamal Faily
committed
Fix baf HTML filtering regexp
1 parent 8de71d0 commit 6661bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cairis/tools/SVGGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def process_output(self, output, model_type):
7272
is_node = True
7373

7474
line = substitute(b.staticDir,"",line)
75-
line = substitute("<!--.*?-->", "", line)
7675
if line.find('fill="none"') > -1 and is_node:
7776
is_node = False
7877

@@ -86,6 +85,7 @@ def process_output(self, output, model_type):
8685
lines = lines[svg_start:]
8786

8887
svg_text = '\n'.join(lines)
88+
svg_text = substitute(r'<!--[\s\S]*?-->', '', svg_text)
8989
svg_output = prettifySVG(svg_text)
9090

9191
return svg_output

0 commit comments

Comments
 (0)