summaryrefslogtreecommitdiff
path: root/tests/test_html_formatter.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2020-10-22 17:40:30 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2020-10-22 17:40:30 +0200
commit0d28e2b7a20ec2bf0025115844647c8e5b88e70b (patch)
tree3f3979ecb8c5394eff21ed819dd2b556d4ae8daf /tests/test_html_formatter.py
parent3e1b79c82d2df318f63f24984d875fd2a3400808 (diff)
downloadpygments-git-fix/1579.tar.gz
Speculative fix for #1579.fix/1579
This removes the top/bottom padding changes, and only keeps left/right padding, in the hope that this does not break all Sphinx themes.
Diffstat (limited to 'tests/test_html_formatter.py')
-rw-r--r--tests/test_html_formatter.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_html_formatter.py b/tests/test_html_formatter.py
index 7a1c563c..37556777 100644
--- a/tests/test_html_formatter.py
+++ b/tests/test_html_formatter.py
@@ -150,11 +150,11 @@ def test_get_style_defs_contains_default_line_numbers_styles():
assert style_defs[1] == (
'td.linenos pre '
- '{ color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }'
+ '{ color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }'
)
assert style_defs[2] == (
'span.linenos '
- '{ color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }'
+ '{ color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }'
)
@@ -169,19 +169,19 @@ def test_get_style_defs_contains_style_specific_line_numbers_styles():
assert style_defs[1] == (
'td.linenos pre '
- '{ color: #ff0000; background-color: #0000ff; padding: 0 5px 0 5px; }'
+ '{ color: #ff0000; background-color: #0000ff; padding-left: 5px; padding-right: 5px; }'
)
assert style_defs[2] == (
'span.linenos '
- '{ color: #ff0000; background-color: #0000ff; padding: 0 5px 0 5px; }'
+ '{ color: #ff0000; background-color: #0000ff; padding-left: 5px; padding-right: 5px; }'
)
assert style_defs[3] == (
'td.linenos pre.special '
- '{ color: #00ff00; background-color: #ffffff; padding: 0 5px 0 5px; }'
+ '{ color: #00ff00; background-color: #ffffff; padding-left: 5px; padding-right: 5px; }'
)
assert style_defs[4] == (
'span.linenos.special '
- '{ color: #00ff00; background-color: #ffffff; padding: 0 5px 0 5px; }'
+ '{ color: #00ff00; background-color: #ffffff; padding-left: 5px; padding-right: 5px; }'
)