Comments (0)

Files changed (1)

File tracopt/notification/name_mentions.py Modified

View file
  • Ignore whitespace
  • Hide word diff
             formatter.format(text, out)
             self.mentions.update(formatter.mentions)
             return out.getvalue()
-        return super(NameMentionsGatherer, self)._exec_processor(processor,
-                                                                 text)
+        else:
+            return '[...]'
+
+    def _macro_formatter(self, match, fullmatch, macro, only_inline=False):
+        if fullmatch.group('macroname') in self._wiki_processors:
+            return super(NameMentionsGatherer, self) \
+                    ._macro_formatter(match, fullmatch, macro,
+                                      only_inline=only_inline)
+        else:
+            return '[...]'
 
 
 class DummyIO(object):