Fix issue #87: Only link 'see item #123' if there is a space before the

hash sign. Prevents HTML-escaped enties such as ' from being picked 
up. Thanks to Andrewas Kotowicz for reporting this.
This commit is contained in:
Ross Poulton 2009-08-04 13:12:13 +00:00
parent 8d95221000
commit da703f3c83

View File

@ -37,7 +37,7 @@ def num_to_link(text):
return text
matches = []
for match in re.finditer("#(\d+)", text):
for match in re.finditer(" #(\d+)", text):
matches.append(match)
for match in ReverseProxy(matches):