1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 00:33:13 -08:00
emacs/test/lisp/net
Kévin Le Gouguec 09ab669351 Keep indenting text when 'shr-fill-text' is nil (bug#69555)
The 'shr-fill-...' functions handle both hard-filling (adding
newlines to break long lines) and indentation.  Setting
'shr-fill-text' to nil currently causes these functions to be
short-circuited completely, so e.g. blockquotes are no longer
indented, whereas the intent of this user option is only to
prevent hard-filling to let visual-line-mode reflow text.

* lisp/net/shr.el (shr-fill-lines): Document that the function
handles more than just filling; move the 'shr-fill-text' check...
(shr-fill-line): ... here, after indentation has been taken care
of.
* test/lisp/net/shr-resources/blockquote.html:
* test/lisp/net/shr-resources/blockquote.txt: New test resources.
* test/lisp/net/shr-tests.el (shr-test--rendering-check): Rename
from 'shr-test', to make the relationship with the 'rendering'
testcase clearer; prefer 'file-name-concat' to 'format'; raise
ERT failure if need be, calling (ert-fail ...) directly instead
of (should (not (list ...))).
(shr-test--rendering-extra-configs): New variable to easily check
that user customizations do not degrade rendering.
(rendering): Consult that new variable; delegate failure-raising
to reduce duplication.
2024-03-15 07:50:31 +01:00
..
dbus-resources
eudc-resources
mailcap-resources
network-stream-resources
ntlm-resources
puny-resources
shr-resources Keep indenting text when 'shr-fill-text' is nil (bug#69555) 2024-03-15 07:50:31 +01:00
tramp-archive-resources
tramp-resources
browse-url-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dbus-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dig-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eww-tests.el ; * test/lisp/net/eww-tests.el (eww-test--response-function): Fix typo. 2024-03-07 12:19:28 -08:00
gnutls-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hmac-md5-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mailcap-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
network-stream-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
newsticker-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
nsm-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ntlm-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
puny-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rcirc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rfc2104-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-cram-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-scram-rfc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
secrets-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
shr-tests.el Keep indenting text when 'shr-fill-text' is nil (bug#69555) 2024-03-15 07:50:31 +01:00
socks-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tramp-archive-tests.el Use defvar for variables that are not constant 2024-02-07 11:13:56 -05:00
tramp-tests.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
webjump-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00