Commit 87a92845 authored by Kevin Ryde's avatar Kevin Ryde Committed by Chong Yidong

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

Fixes: debbugs:11591
parent f0ecdfea
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>
......
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment