From 4d93889018ef773cce3724934730c646a866a448 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Mon, 9 Dec 2024 17:21:57 -0800 Subject: [PATCH] Don't emit invalid tex when externalizing line2d tables --- src/tikzplotlib/_line2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tikzplotlib/_line2d.py b/src/tikzplotlib/_line2d.py index b431b869..b1f7e46b 100644 --- a/src/tikzplotlib/_line2d.py +++ b/src/tikzplotlib/_line2d.py @@ -290,7 +290,7 @@ def _table(obj, data): # noqa: C901 opts_str = ("[" + ",".join(opts) + "] ") if len(opts) > 0 else "" posix_filepath = rel_filepath.as_posix() - content.append(f"table {{{opts_str}}}{{{posix_filepath}}};\n") + content.append(f"table{opts_str}{{{posix_filepath}}};\n") else: if len(opts) > 0: opts_str = ",".join(opts)