summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorNick Currier <nick.currier@gmail.com>2014-07-03 16:17:11 -0600
committerNick Currier <nick.currier@gmail.com>2014-07-03 16:17:11 -0600
commit02d150fa4f9d0a77c4057c9c6413888d88448192 (patch)
treed5696d6925375516d8400d216f0b14812e00e964 /pygments
parent2f1c724903db081f1d6941d366ca95070049e94b (diff)
downloadpygments-02d150fa4f9d0a77c4057c9c6413888d88448192.tar.gz
Move space after inline html linenos to be inside of the span containing the linenos
Diffstat (limited to 'pygments')
-rw-r--r--pygments/formatters/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 970e595b..2c6de4ca 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -628,24 +628,24 @@ class HtmlFormatter(Formatter):
style = 'background-color: #ffffc0; padding: 0 5px 0 5px'
else:
style = 'background-color: #f0f0f0; padding: 0 5px 0 5px'
- yield 1, '<span style="%s">%*s</span> ' % (
+ yield 1, '<span style="%s">%*s </span>' % (
style, mw, (num%st and ' ' or num)) + line
num += 1
else:
for t, line in lines:
yield 1, ('<span style="background-color: #f0f0f0; '
- 'padding: 0 5px 0 5px">%*s</span> ' % (
+ 'padding: 0 5px 0 5px">%*s </span>' % (
mw, (num%st and ' ' or num)) + line)
num += 1
elif sp:
for t, line in lines:
- yield 1, '<span class="lineno%s">%*s</span> ' % (
+ yield 1, '<span class="lineno%s">%*s </span>' % (
num%sp == 0 and ' special' or '', mw,
(num%st and ' ' or num)) + line
num += 1
else:
for t, line in lines:
- yield 1, '<span class="lineno">%*s</span> ' % (
+ yield 1, '<span class="lineno">%*s </span>' % (
mw, (num%st and ' ' or num)) + line
num += 1