1.1 --- a/EventAggregatorSupport.py Thu Feb 04 00:24:01 2010 +0100
1.2 +++ b/EventAggregatorSupport.py Thu Feb 04 21:05:07 2010 +0100
1.3 @@ -350,14 +350,6 @@
1.4
1.5 for match in definition_list_regexp.finditer(body):
1.6
1.7 - # Add preceding text to the new body.
1.8 -
1.9 - new_body_parts.append(body[end_of_last_match:match.start()])
1.10 -
1.11 - # Get the matching regions, adding the term to the new body.
1.12 -
1.13 - new_body_parts.append(match.group("wholeterm"))
1.14 -
1.15 # Permit case-insensitive list terms.
1.16
1.17 term = match.group("term").lower()
1.18 @@ -378,6 +370,14 @@
1.19 event_details = event.getDetails()
1.20 replaced_terms = set()
1.21
1.22 + # Add preceding text to the new body.
1.23 +
1.24 + new_body_parts.append(body[end_of_last_match:match.start()])
1.25 +
1.26 + # Get the matching regions, adding the term to the new body.
1.27 +
1.28 + new_body_parts.append(match.group("wholeterm"))
1.29 +
1.30 # Special value type handling.
1.31
1.32 if event_details.has_key(term):
1.33 @@ -404,6 +404,8 @@
1.34
1.35 replaced_terms.add(term)
1.36
1.37 + # Add the replaced value.
1.38 +
1.39 new_body_parts.append(desc)
1.40
1.41 # Remember where in the page has been processed.