summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-13 23:29:24 +0100
committergbrandl <devnull@localhost>2007-02-13 23:29:24 +0100
commit0fa948e73c48996de904aeb2f0e4990fc40385ec (patch)
tree717883743e5dae200f38450dea3b46012c32a1ee /pygments/formatters/html.py
parentb3b5dae666a11efd0beac407f525cf2806bc3757 (diff)
downloadpygments-0fa948e73c48996de904aeb2f0e4990fc40385ec.tar.gz
[svn] Another two fixes.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 97165d00..565f35b9 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -465,12 +465,10 @@ class HtmlFormatter(Formatter):
lspan = cspan
else:
line += parts[-1]
- elif line:
- # we neither have to open a new span nor set lspan
- pass
- else:
+ elif parts[-1]:
line = cspan + parts[-1]
lspan = cspan
+ # else we neither have to open a new span nor set lspan
if line:
yield 1, line + (lspan and '</span>') + lsep