We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c60bed9 commit 77b57f0Copy full SHA for 77b57f0
src/tikzplotlib/_line2d.py
@@ -288,11 +288,9 @@ def _table(obj, data): # noqa: C901
288
esp = data["externals search path"]
289
opts.append(f"search path={{{esp}}}")
290
291
- if len(opts) > 0:
292
- opts_str = ",".join(opts)
293
- content.append(f"table [{opts_str}] {{{rel_filepath}}};\n")
294
- else:
295
- content.append(f"table {{{rel_filepath}}};\n")
+ opts_str = ("[" + ",".join(opts) + "] ") if len(opts) > 0 else ""
+ posix_filepath = rel_filepath.as_posix()
+ content.append(f"table {{opts_string}}{{{posix_filepath}}};\n")
296
else:
297
if len(opts) > 0:
298
opts_str = ",".join(opts)
0 commit comments