Skip to content

Commit cc282d8

Browse files
author
y-p
committed
Merge pull request #3527 from cpcloud/qt-repr-bug
fix qt repr bug
2 parents 6518c79 + 942d873 commit cc282d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,8 @@ def _repr_html_(self):
746746
self.info(buf=buf, verbose=verbose)
747747
info = buf.getvalue()
748748
info = info.replace('&', r'&')
749-
info = info.replace('<', r'&lt')
750-
info = info.replace('>', r'&gt')
749+
info = info.replace('<', r'&lt;')
750+
info = info.replace('>', r'&gt;')
751751
return ('<pre>\n' + info + '\n</pre>')
752752
else:
753753
return None

0 commit comments

Comments
 (0)