changeset 5427:cd2696f05fc5

parser/text_moin_wiki.py: Fix of http://www.moinmo.in/MoinMoinBugs/LineNumberSpansForProcessInstructionsMissed for text_moin_wiki parser
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 15 Jan 2010 03:22:06 +0300
parents 63df8c7b82b2
children 82b60084aaf3
files MoinMoin/parser/text_moin_wiki.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_moin_wiki.py	Tue Jan 12 22:27:07 2010 +0100
+++ b/MoinMoin/parser/text_moin_wiki.py	Fri Jan 15 03:22:06 2010 +0300
@@ -1435,6 +1435,10 @@
         rawtext = self.raw.expandtabs()
 
         # go through the lines
+
+        for lineno in range(1, self.start_line + 1):
+            self.request.write(self.formatter.line_anchordef(lineno))
+
         self.lineno = self.start_line
         self.lines = self.eol_re.split(rawtext)
         self.line_is_empty = 0