GNU bug report logs - #42182
26.3; html/mhtml mode fails to handle ">" (greater-than) in text

Previous Next

Package: emacs;

Reported by: Sam Sneddon <me <at> gsnedders.com>

Date: Sat, 4 Jul 2020 01:15:01 UTC

Severity: normal

Tags: fixed

Found in version 26.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam Sneddon <me <at> gsnedders.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; html/mhtml mode fails to handle ">" (greater-than) in text
Date: Fri, 3 Jul 2020 23:18:41 +0100
Inputting the following in either HTML or HTML+ mode causes bogus
highlighting:

---

foo > bar

<div class="not highlighted as attribute">

'highlighted as attribute'

---

As the text implies, the attribute is _not_ highlighted as such, and the
quotation marks on the next line are treated as an attribute. This
becomes much more disruptive when anything like "it's" appears in the
text as it'll highlight everything until the next apostrophe!

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40844 is similar, except
there it gets confused by "(".

/Sam




This bug report was last modified 4 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.