Skip to content

Commit

Permalink
fix ticket:5250 handle '<' and '>' the way GenerateDoc.mos does
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2838
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Dec 15, 2018
1 parent d090ace commit 7140453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/generate_icons.py
Expand Up @@ -52,7 +52,7 @@ def classToFileName(cl):
The file-system dislikes directory separators, and scripts dislike tokens that expand to other names.
This function uses the same replacement rules as the OpenModelica documentation-generating script.
"""
return cl.replace("/","Division").replace("*","Multiplication")
return cl.replace("/","Division").replace("*","Multiplication").replace("<","x3C").replace(">","x3E")

exp_float = '[+-]?\d+(?:.\d+)?(?:e[+-]?\d+)?'

Expand Down

0 comments on commit 7140453

Please sign in to comment.