multiline tag match fix
need to add re.DOTALL so that multiline tag definitions are also matched
This commit is contained in:
parent
625d4b69b3
commit
70ee947a8b
@ -215,7 +215,7 @@ comment = re.compile(r'<!--.*?-->', re.DOTALL)
|
|||||||
# Match ignored tags
|
# Match ignored tags
|
||||||
ignored_tag_patterns = []
|
ignored_tag_patterns = []
|
||||||
def ignoreTag(tag):
|
def ignoreTag(tag):
|
||||||
left = re.compile(r'<%s\b.*?>' % tag, re.IGNORECASE) # both <ref> and <reference>
|
left = re.compile(r'<%s\b.*?>' % tag, re.IGNORECASE | re.DOTALL) # both <ref> and <reference>
|
||||||
right = re.compile(r'</\s*%s>' % tag, re.IGNORECASE)
|
right = re.compile(r'</\s*%s>' % tag, re.IGNORECASE)
|
||||||
ignored_tag_patterns.append((left, right))
|
ignored_tag_patterns.append((left, right))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user