Closed evandrocoan closed 6 years ago
This is an artifact of some workarounds to make some HTML names more usable in Python, since python variable names cannot contain :
. It looks like attribute namespaces are only allowed in a few specific cases however, so I've changed this behavior to only apply then and not in general. (Fixed in 6893d1d, version 2.3.5).
You can always directly set attributes to bypass this behavior, i.e.:
f = font()
f.attributes['grammar_scope'] = 'foo'
If I render a code like:
When it generates the html, the underscore _ on the name
grammar_scope
is replaced by a colon :