mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-07-09 13:33:06 -04:00
Skip XML comments when reading charstrings in editor
This commit is contained in:
parent
5e46500fb8
commit
a0cbdb9d05
1
editor
1
editor
@ -121,6 +121,7 @@ class EditorGui:
|
||||
else:
|
||||
print("unknown charstring component " + repr(word))
|
||||
interp = CharstringInterpreter()
|
||||
data = re.sub(r"<!--(?:[^-]|-[^-])*-->", "", data)
|
||||
for word in data.split():
|
||||
interp.op(word)
|
||||
paths = [[[int((float(x)-LEFT)*pixel*0.01 + 2*gutter + XSIZE*pixel),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user