diff --git a/docs/docs_writer.py b/docs/docs_writer.py index 750b0f92..29bc2be4 100644 --- a/docs/docs_writer.py +++ b/docs/docs_writer.py @@ -1,4 +1,5 @@ import os +import re class DocsWriter: @@ -153,9 +154,25 @@ class DocsWriter: # Generic results cannot have any link self.write(tlobject.result) else: - self.write('%s' % tlobject.result) + if re.search('^vector<', tlobject.result, re.IGNORECASE): + # Notice that we don't simply make up the "Vector" part, + # because some requests (as of now, only FutureSalts), + # use a lower type name for it (see #81) + vector, inner = tlobject.result.split('<') + inner = inner.strip('>') + self.write('%s<' % vector) + + self.write('%s' % inner) + + self.write('>') + else: + self.write('%s' % tlobject.result) self.write('')