[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Patch for w3m-end-of-tag to handle HTML tags that enclose whitespace



In [emacs-w3m : No.12311]
	On Fri, 18 Apr 2014 20:56:41 -0700, Michael Ernst wrote:
> When an HTML tag encloses only whitespace, as in

>   <blockquote>   </blockquote>

> , function w3m-end-of-tag can set the match-data in an inconsistent
> way where the start of a group comes *after* the beginning of a group.
> In particular, group 3 starts at the end of the enclosed whitespace,
> and group 3 ends at the beginning of the enclosed whitespace.  This
> causes clients such as mew-w3m-cite-blockquote to fail.

> The attached patch fixes this problem.

> Other routines such as w3m-beginning-of-tag might suffer the same
> problem; I have not investigated them.

> I noticed this problem while running the Mew email reader.
> The attached email message reproduces the problem.

Thank you very much for the fix.  I've applied your patch and
also fixed the `w3m-beginning-of-tag' function.