From: Ben Harris Date: Tue, 19 Nov 2024 22:27:47 +0000 (+0000) Subject: Skip XML comments when reading charstrings in editor X-Git-Tag: bedstead-3.246~16 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=a0cbdb9d057386be7540e2fe2d43d7808213e6d4;p=bedstead.git Skip XML comments when reading charstrings in editor --- diff --git a/editor b/editor index 88db3b8..df2ca61 100755 --- a/editor +++ b/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),