Georg Brandl committed fa2467e

Fix output for complicated signatures in latex.

Comments (0)

Files changed (1)


     def depart_desc_signature(self, node):
-        self.body.append('}{}')
+        self.body.append('}')
     def visit_desc_addname(self, node):
     def visit_desc_returns(self, node):
-        self.body.append(r'}{ $\rightarrow$ ')
+        self.body.append(r'{ $\rightarrow$ ')
     def depart_desc_returns(self, node):
-        pass
+        self.body.append(r'}')
     def visit_desc_name(self, node):
         self.literal_whitespace -= 1
     def visit_desc_parameterlist(self, node):
+        # close name, open parameterlist
         self.first_param = 1
     def depart_desc_parameterlist(self, node):
-        pass
+        # close parameterlist, open return annotation
+        self.body.append('}{')
     def visit_desc_parameter(self, node):
         if not self.first_param:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.