From f8d91b7a09f89c93d256dd401b041b56d9885435 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Apr 2014 10:13:14 +0530 Subject: [PATCH] Edit book: Fix a hang when editing an HTML or XML file with text of the form ': _('An unescaped > is not allowed. Replace it with >'), - '/': _('/ not allowed except at the end of the tag'), - '?': _('Unknown character'), - 'bad-closing': _('A closing tag must contain only the tag name and nothing else'), - 'no-attr-value': _('Expecting an attribute value'), + '<': _('An unescaped < is not allowed. Replace it with <'), + '&': _('An unescaped ampersand is not allowed. Replace it with &'), + '>': _('An unescaped > is not allowed. Replace it with >'), + '/': _('/ not allowed except at the end of the tag'), + '?': _('Unknown character'), + 'bad-closing': _('A closing tag must contain only the tag name and nothing else'), + 'no-attr-value': _('Expecting an attribute value'), + 'only-prefix': _('A tag name cannot end with a colon'), }.iteritems(): f = formats[name] = SyntaxTextCharFormat(formats['error']) f.setToolTip(msg) @@ -507,7 +513,7 @@ if __name__ == '__main__': - +

A heading that should appear in bold, with an italic word

Some text with inline formatting, that is syntax highlighted. A bold word, and an italic word. \