Skip to content

Commit f171312

Browse files
authored
Fix difflib HtmlDiff may not use monospaced font
1 parent 9649278 commit f171312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/difflib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ def _line_pair_iterator():
16331633

16341634
_styles = """
16351635
:root {color-scheme: light dark}
1636-
table.diff {font-family:Courier; border:medium;}
1636+
table.diff {font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; border:medium}
16371637
.diff_header {background-color:#e0e0e0}
16381638
td.diff_header {text-align:right}
16391639
.diff_next {background-color:#c0c0c0}

0 commit comments

Comments
 (0)