Commit 29c9b2e6 authored by Andreas Jung's avatar Andreas Jung

Collector 2306: wrong regex broke Gloassary

parent b976f61c
......@@ -122,6 +122,7 @@ def initialize(context):
# create glossary
text=open(glossary_path).read()
text=term_pat.sub(defineTerm, text)
glossary=TutorialTopic.TutorialTopic('tutorialGlossary', 'Zope Tutorial Glossary', text)
context.registerHelpTopic('tutorialGlossary', glossary)
......@@ -170,7 +171,7 @@ def spacestrip(txt):
# Glossary functions
# ----------------
term_pat=re.compile(r'\[([^\]])+?\]')
term_pat=re.compile('\[(.*?)\]')
terms=[]
def glossaryTerm(match):
......
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