Skip to content

Commit 0ba047d

Browse files
author
Jonathan Feinberg
committed
Merge pull request jdf#95 from GABBAR1947/master
added usage param
2 parents 7d9651a + cf845a2 commit 0ba047d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎generator.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def __init__(self, source_xml):
102102
if xml.find('subcategory') is not None:
103103
self.subcategory = self.get_element_text(xml.find('subcategory'))
104104

105+
self.usage = None
106+
if xml.find('usage') is not None:
107+
self.usage = self.get_element_text(xml.find('usage'))
108+
105109
# We store plain xml-elements for some children so that we can use convert_hypertext on them at generation time.
106110
# This is necessary because all ReferenceItems have to be parsed before links can be resolved.
107111
self.examples = []

0 commit comments

Comments
 (0)