diff options
| author | Lars Magne Ingebrigtsen | 2016-03-25 16:57:35 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-03-25 16:57:35 +0100 |
| commit | 7570b35740915626e94c6038e3203374ce4267b1 (patch) | |
| tree | d3d2e9b49d1a251a176b12e5160a86bfc2406da2 /test/data | |
| parent | b2e629c0d043720fe9f043e59d583eb7068dfb11 (diff) | |
| download | emacs-7570b35740915626e94c6038e3203374ce4267b1.tar.gz emacs-7570b35740915626e94c6038e3203374ce4267b1.zip | |
(shr-insert): Respect non-breaking space in non-<pre> text
* lisp/net/shr.el (shr-insert): Respect non-breaking space in
non-<pre> text.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/shr/nonbr.html | 1 | ||||
| -rw-r--r-- | test/data/shr/nonbr.txt | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/data/shr/nonbr.html b/test/data/shr/nonbr.html new file mode 100644 index 00000000000..56282cf4ca5 --- /dev/null +++ b/test/data/shr/nonbr.html | |||
| @@ -0,0 +1 @@ | |||
| <div class="gmail_extra">(progn</div><div class="gmail_extra"> (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt))</div><div class="gmail_extra"><br></div><div class="gmail_extra"> (defun turn-on-cursor-intangible-mode ()</div><div class="gmail_extra"> "Turns on cursor-intangible-mode."</div><div class="gmail_extra"> (interactive)</div><div class="gmail_extra"> (cursor-intangible-mode 1))</div><div class="gmail_extra"> (define-globalized-minor-mode global-cursor-intangible-mode cursor-intangible-mode turn-on-cursor-intangible-mode)</div><div class="gmail_extra"><br></div><div class="gmail_extra"> (global-cursor-intangible-mode 1))</div><div class="gmail_extra"><br></div> | |||
diff --git a/test/data/shr/nonbr.txt b/test/data/shr/nonbr.txt new file mode 100644 index 00000000000..0c3cffa93f9 --- /dev/null +++ b/test/data/shr/nonbr.txt | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | (progn | ||
| 2 | (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face | ||
| 3 | minibuffer-prompt)) | ||
| 4 | |||
| 5 | (defun turn-on-cursor-intangible-mode () | ||
| 6 | "Turns on cursor-intangible-mode." | ||
| 7 | (interactive) | ||
| 8 | (cursor-intangible-mode 1)) | ||
| 9 | (define-globalized-minor-mode global-cursor-intangible-mode | ||
| 10 | cursor-intangible-mode turn-on-cursor-intangible-mode) | ||
| 11 | |||
| 12 | (global-cursor-intangible-mode 1)) | ||