summaryrefslogtreecommitdiff
path: root/tests/test_html_formatter.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <Anteru@users.noreply.github.com>2020-10-24 11:46:11 +0200
committerGitHub <noreply@github.com>2020-10-24 11:46:11 +0200
commit20fb8fd85f37d79b37ac79f14774b9cc4ae77731 (patch)
tree3f3979ecb8c5394eff21ed819dd2b556d4ae8daf /tests/test_html_formatter.py
parent3e1b79c82d2df318f63f24984d875fd2a3400808 (diff)
downloadpygments-git-20fb8fd85f37d79b37ac79f14774b9cc4ae77731.tar.gz
Speculative fix for #1579. (#1583)
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; }'
)