menu_view: unquote label text attribute value

This patch enables the menu view to display '"' characters supplied via
the 'text' attribute of the <label> widget.

Issue #3607
Issue #3629
This commit is contained in:
Norman Feske 2020-01-15 00:04:10 +01:00 committed by Christian Helmuth
parent e612f7cd7d
commit 5b650434b0
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ struct Menu_view::Label_widget : Widget, Cursor::Glyph_position
{
_font = _factory.styles.font(node);
_text = node.attribute_value("text", Text(""));
_text = Xml_unquoted(_text);
_cursors.update_from_xml(_cursor_update_policy, node);
}