Skip to content

Commit

Permalink
Merge pull request #1095 from nexusformat/979-units-example
Browse files Browse the repository at this point in the history
adjust string for examples so they appear on new lines
  • Loading branch information
prjemian authored Jun 15, 2022
2 parents cce7805 + 5833e80 commit 03aabfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/units2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def worker(nodeMatchString, section = 'units'):
examples.append("``"+example.text+"``")
a = words.text
if len(examples) > 0:
a = a.strip() + ", example(s): " + " | ".join(examples)
a = ' '.join(a.split()) + ",\n\texample(s): " + " | ".join(examples)
db[node_name] = a

# for item in node.xpath('xs:restriction//xs:enumeration', namespaces=ns):
Expand Down

0 comments on commit 03aabfb

Please sign in to comment.