* woman.el (woman2-process-escapes): Handle nofill regions.

Fixes: debbugs:11591
This commit is contained in:
Kevin Ryde 2012-07-07 18:10:47 +08:00 committed by Chong Yidong
parent f0ecdfeaae
commit 87a92845e7
2 changed files with 5 additions and 2 deletions

View file

@ -1,8 +1,9 @@
2012-07-07 Kevin Ryde <user42@zip.com.au>
2012-07-07 Kevin Ryde <user42@zip.com.au>
* woman.el (woman-strings): Fix double-quote handling (Bug#1151).
(woman-decode-region): Replace escaped-escapes without destroying
bold or underline (Bug#11552).
(woman2-process-escapes): Handle nofill regions (Bug#11591).
2012-07-07 Chong Yidong <cyd@gnu.org>

View file

@ -3932,7 +3932,9 @@ Optional argument NUMERIC, if non-nil, means the argument is numeric."
(while (re-search-forward "\\\\[&|^]" to t)
(woman-delete-match 0)
;; If on a line by itself, consume newline as well (Bug#3651).
(and (eq (char-before (match-beginning 0)) ?\n)
;; But not in a .nf region, preserve all newlines in that case.
(and (not woman-nofill)
(eq (char-before (match-beginning 0)) ?\n)
(eq (char-after (match-beginning 0)) ?\n)
(delete-char 1)))