Commit 8862fcaf authored by Jim Fulton's avatar Jim Fulton

Fixed bug in header-detecting re

parent c0284c70
"""Document object""" """Document object"""
__version__='$Revision: 1.68 $'[11:-2] __version__='$Revision: 1.69 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower from string import join,split,strip,rfind,atoi,lower
...@@ -266,7 +266,7 @@ class DocumentHandler: ...@@ -266,7 +266,7 @@ class DocumentHandler:
def decapitate(html, RESPONSE=None, def decapitate(html, RESPONSE=None,
header_re=regex.compile( header_re=regex.compile(
'\(\(' '\(\('
'[^\0\- <>:]+:[^\n]*\n' '[^\n\0\- <>:]+:[^\n]*\n'
'\|' '\|'
'[ \t]+[^\0\- ][^\n]*\n' '[ \t]+[^\0\- ][^\n]*\n'
'\)+\)[ \t]*\n\([\0-\377]+\)' '\)+\)[ \t]*\n\([\0-\377]+\)'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment