GNU bug report logs - #60247
28.2; incorrect highlighting in HTML+ mode

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Thu, 22 Dec 2022 01:53:01 UTC

Severity: minor

Found in version 28.2

Full log


View this message in rfc822 format

From: Matthias Meulien <orontee <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 60247 <at> debbugs.gnu.org, Vincent Lefevre <vincent <at> vinc17.net>
Subject: bug#60247: 28.2; incorrect highlighting in HTML+ mode
Date: Sun, 23 Jul 2023 09:58:51 +0200
Matthias Meulien <orontee <at> gmail.com> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> Date: Thu, 22 Dec 2022 02:51:32 +0100
>>> From: Vincent Lefevre <vincent <at> vinc17.net>
>>> 
>>> 1. Open file.html with "emacs -Q file.html".
>>> 2. Go to the end of the file.
>>> 
>>> In the paragraph starting with
>>> 
>>> <p>The first version of unums, formally known as Type I unum, was introduced in Gustafson's book <i>The End of Error</i> as a superset
>>> 
>>> everything from "'s book" is highlighted in a different color.
>>
>> HTML Mode evidently considers what follows the apostrophe to be a
>> string.  Replacing the literal apostrophe with &#39; fixes the
>> display.
>
> I confirm Vincent observation:  HTML Mode behavior with quotes is
> inconsistent.
>
> Bug still present with 30.0.50 build from commit b9a910a701a.
>
> I reproduced with emacs -Q and the files test.html and test_ko.html
> attached to this message.
>
> Note that removing random space charaters in the style element sometime
> fix the problem.
>
>
>
> Test HTML Mode
>
> This is expected. That's expected too
>
> Test HTML Mode
>
> This is expected. That's expected too

Note that fontification looks good with html-ts-mode.




This bug report was last modified 1 year and 285 days ago.

Previous Next


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