Skip to content

Commit 79db7a8

Browse files
author
Gorshanov Vadim
committed
Allow to have space before space sign
1 parent a4c3621 commit 79db7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tikzplotlib/_line2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def draw_line2d(data, obj):
101101
content += c
102102

103103
if legend_text is not None:
104-
legend_text_escaped = re.sub(r"(\d+(\.\d+)?)%",
104+
legend_text_escaped = re.sub(r"(\d+(\.\d+)?)\s?%",
105105
r"\\SI{\1}{\\percent}",
106106
legend_text).replace("+-\\SI{",
107107
"\\SI{+-").replace(", s",

0 commit comments

Comments
 (0)