Commits

gbrandl  committed 827aa74

[svn] Another two fixes.

  • Participants
  • Parent commits ef5ac9c
  • Branches trunk

Comments (0)

Files changed (2)

File pygments/formatters/html.py

                     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

File pygments/lexers/agile.py

                     tbindex = match.start()
                 elif tb:
                     curtb += line
-                    if not line.startswith(' '):
+                    if not (line.startswith(' ') or line.strip() == '...'):
                         tb = 0
                         for i, t, v in tblexer.get_tokens_unprocessed(curtb):
                             yield tbindex+i, t, v