Skip to content

Commit 2110ecb

Browse files
authored
second item in tuple is no longer truncated at first colon
#59623
1 parent bc9b1c3 commit 2110ecb

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
@@ -2072,9 +2072,9 @@ def maybe_convert_css_to_tuples(style: CSSProperties) -> CSSList:
20722072
s = style.split(";")
20732073
try:
20742074
return [
2075-
(x.split(":")[0].strip(), x.split(":")[1].strip())
2075+
(x.split(":")[0].strip(), ":".join(x.split(":")[1:]).strip())
20762076
for x in s
2077-
if x.strip() != ""
2077+
if ":".join(x.split(":")[1:]).strip() != ""
20782078
]
20792079
except IndexError as err:
20802080
raise ValueError(

0 commit comments

Comments
 (0)