Displaying 1 result from an estimated 1 matches for "footnote_ref".
2006 Aug 28
0
bug / infinite loop
...H = /(<\/?\w[^\n]*?>)/m
ALLTAG_MATCH = /(<\/?\w[^\n]*?>)|.*?(?=<\/?\w[^\n]*?>|$)/m
- def glyphs_textile( text, level = 0 )
+ def glyphs_textile( text, level = 50 )
+ if level < 0
+ return
+ end
if text !~ HASTAG_MATCH
pgl text
footnote_ref text
@@ -996,7 +999,7 @@
codepre = 0 if codepre < 0
end
elsif codepre.zero?
- glyphs_textile( line, level + 1 )
+ glyphs_textile( line, level - 1 )
else
htm...