[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48211: 28.0.50; eww strips whitespace between <mark> elements
From: |
Stefan Kangas |
Subject: |
bug#48211: 28.0.50; eww strips whitespace between <mark> elements |
Date: |
Mon, 3 May 2021 19:51:06 -0500 |
Stefan Kangas <stefan@marxist.se> writes:
> FWIW, the below diff works around this bug for me.
>
> diff --git a/lisp/net/shr.el b/lisp/net/shr.el
> index cbdeb65ba8..3eb3a5bc49 100644
> --- a/lisp/net/shr.el
> +++ b/lisp/net/shr.el
> @@ -1485,6 +1485,12 @@ shr-tag-tt
> ;; The `tt' tag is deprecated in favor of `code'.
> (shr-tag-code dom))
>
> +(defun shr-tag-mark (dom)
> + (shr-generic dom)
> + ;; Hack to work around bug in libxml2 (Bug#48211):
> + ;; https://gitlab.gnome.org/GNOME/libxml2/-/issues/247
> + (insert " "))
> +
> (defun shr-tag-ins (cont)
> (let* ((start (point))
> (color "green")
Well, I should moderate that statement.
It doesn't exactly fix the bug as I'm now getting this instead:
1. f. Unidad lingüística , dotada generalmente de significado , que
se separa de las demás mediante pausas potenciales en la
pronunciación y blancos en la escritura .
2. f. Representación gráfica de la palabra hablada .
3. f. Facultad de hablar .
IOW, whitespace is added even if the following character is
punctuation...