Skip to content

Commit

Permalink
doc: follow changes in omnet 6 neddoc extra content file format change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornig committed May 17, 2022
1 parent f9ecfcc commit 2e7cafa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/inet_selfdoc_json2xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ def groupCol(rows, colName):

db = json.load(sys.stdin)

print('<docfragments>')
for nedtype, actions in db.items():
print('<nedfragment location="{}" anchor="after-statistics"><![CDATA[\n{}]]></nedfragment>\n\n'.format(
print('<docfragment nedtype="{}" anchor="after-statistics"><![CDATA[\n{}]]></docfragment>\n\n'.format(
nedtype,
table(actions.get('SCHEDULE'), 'Scheduled messages') +
table(actions.get('CALL'), 'Direct method calls') +
Expand All @@ -88,3 +89,4 @@ for nedtype, actions in db.items():
table(actions.get('TAG'), 'Tagging operations') +
'')
)
print('</docfragments>')

0 comments on commit 2e7cafa

Please sign in to comment.