diff --git a/src/pydot/dot_parser.py b/src/pydot/dot_parser.py index 70fa892..1bafeb5 100644 --- a/src/pydot/dot_parser.py +++ b/src/pydot/dot_parser.py @@ -426,6 +426,8 @@ def graph_definition(): noncomma = "".join([c for c in printables if c != ","]) alphastring_ = OneOrMore(CharsNotIn(noncomma + " ")) + # override pyparsing tightened whitespace-skipping logic + alphastring_.skipWhitespace = True def parse_html(s, loc, toks): return "<%s>" % "".join(toks[0])