Skip to content

Commit 5e9a675

Browse files
authored
Update style_render.py
Fixed error in prepending existing class in table_attr
1 parent f015fb1 commit 5e9a675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/formats/style_render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,10 @@ def _translate(
367367
table_attr = table_attr or ""
368368
if 'class="' in table_attr:
369369
table_attr = table_attr.replace(
370-
'class="', 'class="tex2jax_ignore mathjax_ignore"'
370+
'class="', 'class="tex2jax_ignore mathjax_ignore '
371371
)
372372
else:
373-
table_attr += ' class="tex2jax_ignore mathjax_ignore"'
373+
table_attr += 'class="tex2jax_ignore mathjax_ignore"'
374374
d.update({"table_attributes": table_attr})
375375

376376
if self.tooltips:

0 commit comments

Comments
 (0)