diff options
author | Paul Wicks <pwicks86@gmail.com> | 2017-10-27 16:08:48 -0700 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2018-03-30 16:50:32 +0200 |
commit | d3be782bb8df90a0d594eceec401337899234163 (patch) | |
tree | e4466b337b9fdc0a868d0e2746fb4f6340ddb372 | |
parent | b847c7291fc3c36a88b9d5ad35eed3a94e378186 (diff) |
grc: Escape xml chars in category names so that they display correctly in tooltips in the BlockTreeWindow (#1499)
-rw-r--r-- | grc/gui/BlockTreeWindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py index 900cbd3151..258b8b787f 100644 --- a/grc/gui/BlockTreeWindow.py +++ b/grc/gui/BlockTreeWindow.py @@ -58,7 +58,8 @@ undocumented#slurp CAT_MARKUP_TMPL = """ #set $name = $cat[-1] #if len($cat) > 1 -Category: $cat[-1] +#silent from xml.sax.saxutils import escape +Category: #echo escape($cat[-1]) ## #elif $name == 'Core' Module: Core |