changeset 5431:5886d3b46063

Fix of MoinMoinBugs/LineNumberSpansForProcessInstructionsMissed for highlight parser.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 15 Jan 2010 03:37:48 +0300
parents c18b36185649
children 172d77f67e0a
files MoinMoin/parser/highlight.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/highlight.py	Fri Jan 15 03:26:42 2010 +0300
+++ b/MoinMoin/parser/highlight.py	Fri Jan 15 03:37:48 2010 +0300
@@ -101,6 +101,9 @@
         result = self.result
         self.lineno = self.start_line
 
+        for lineno in range(1, self.start_line + 1):
+            result.append(fmt.line_anchordef(lineno))
+
         for ttype, value in tokensource:
             class_ = self.get_class(ttype)
             if value: