diff options
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 73ac77a5..cdc1c1ce 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -475,7 +475,8 @@ class HtmlFormatter(Formatter): num += 1 else: for t, line in lines: - yield 1, '<span class="lineno">%*s</span> ' % (mw, (num%st and ' ' or num)) + line + yield 1, '<span class="lineno">%*s</span> ' % ( + mw, (num%st and ' ' or num)) + line num += 1 def _wrap_div(self, inner): |