I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 927217c5 authored by str4d's avatar str4d
Browse files

Handle message types in formatter

Most messages will work with or without the Message tail, e.g. SetDateMessage
vs. SetDate. The exception to this is SetMessageMessage, which must be specified
fully.
parent 3a527f55
No related branches found
No related tags found
No related merge requests found
...@@ -716,6 +716,10 @@ class I2PHtmlFormatter(Formatter): ...@@ -716,6 +716,10 @@ class I2PHtmlFormatter(Formatter):
if tagsfile and ttype in Token.Name.Class: if tagsfile and ttype in Token.Name.Class:
filename, kind = self._lookup_ctag(value) filename, kind = self._lookup_ctag(value)
# Handle message types
if not kind and value.endswith('Message'):
value = value[:-7]
filename, kind = self._lookup_ctag(value)
if kind: if kind:
base, filename = os.path.split(filename) base, filename = os.path.split(filename)
if base: if base:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment