From d6d7d06192f7fb8b3ac659a611b6d3f8ac3d9a75 Mon Sep 17 00:00:00 2001 From: Ted Ralphs Date: Mon, 10 Feb 2020 15:34:38 -0500 Subject: [PATCH] Hack to fix bug reported in https://github.com/kjellmf/dot2tex/issues/77 --- dot2tex/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot2tex/utils.py b/dot2tex/utils.py index f4f5e2e..99adf01 100644 --- a/dot2tex/utils.py +++ b/dot2tex/utils.py @@ -96,7 +96,7 @@ def is_multiline_label(drawobject): return False label = getattr(drawobject, "label", "") - return any(x in label for x in [r"\n", r"\l", r"\r"]) + return any(x in label for x in [r"\n", r"\r"]) class EndOfGraphElement(object): @@ -122,4 +122,4 @@ def get_all_graph_elements(graph, l=None): if outer: return l else: - l.append(EndOfGraphElement()) \ No newline at end of file + l.append(EndOfGraphElement())