Changeset 953 for specdomain/src/specdomain/sphinxcontrib/specdomain.py
- Timestamp:
- Jun 20, 2012 1:24:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/src/specdomain/sphinxcontrib/specdomain.py
r942 r953 209 209 extended_comments_list = self.parse_macro_file(sig) 210 210 view = ViewList([u'TODO: recognize the ReST formatting in the following extended comment and it needs to be cleaned up']) 211 #contentnode = nodes.TextElement() 211 212 node = nodes.paragraph() 212 213 node.document = self.state.document 213 214 self.state.nested_parse(view, 0, signode) 214 215 # TODO: recognize the ReST formatting in the following extended comment and it needs to be cleaned up 215 for extended_comment in extended_comments_list: 216 for line in string2lines(extended_comment): 217 view = ViewList([line]) 218 nested_parse_with_titles(self.state, view, signode) 216 # nodes.TextElement(raw, text) 217 # sphinx.directives.__init__.py ObjectDescription.run() method 218 # Summary: This does not belong here, in the signature processing part. 219 # Instead, it goes at the directive.run() method. Where's that here? 220 # for extended_comment in extended_comments_list: 221 # for line in string2lines(extended_comment): 222 # view = ViewList([line]) 223 # nested_parse_with_titles(self.state, view, signode) 219 224 return sig 225 226 def XX_run(self): 227 # TODO: recognize the ReST formatting in the following extended comment and it needs to be cleaned up 228 # nodes.TextElement(raw, text) 229 # sphinx.directives.__init__.py ObjectDescription.run() method 230 # Summary: This does not belong here, in the signature processing part. 231 # Instead, it goes at the directive.run() method. This is the new place! 232 pass 220 233 221 234 def parse_macro_file(self, filename):
Note: See TracChangeset
for help on using the changeset viewer.