Browse Source

Fix rendering if name has inch symbol

master
Hamish Willee 4 years ago committed by Beat Küng
parent
commit
f70b6fbf0b
  1. 4
      Tools/px4airframes/markdownout.py

4
Tools/px4airframes/markdownout.py

@ -120,8 +120,10 @@ img { @@ -120,8 +120,10 @@ img {
if maintainer != '':
maintainer_entry = 'Maintainer: %s' % (html.escape(maintainer))
url = param.GetFieldValue('url')
name_anchor='id="%s_%s_%s"' % (group.GetClass(),group.GetName(),name)
name_anchor='%s_%s_%s' % (group.GetClass(),group.GetName(),name)
name_anchor=name_anchor.replace(' ','_').lower()
name_anchor=name_anchor.replace('"','_').lower()
name_anchor='id="%s"' % name_anchor
name_entry = name
if url != '':
name_entry = '<a href="%s">%s</a>' % (url, name)

Loading…
Cancel
Save