From 94cd81895ea53a20400d13b0e9c2bcf756ed382b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 26 Jan 2017 18:28:18 +0000 Subject: Fix -man -Thtml formatting after .nf (which has nothing to do with "literal", by the way, it means "no fill"): * Use
 such that whitespace is preserved.
* Preserve lines breaks.
* For font alternating macros, avoid node recursion which required
scary juggling with the fill state.  Instead, simply print the text
children directly.

Missing feature first noticed by kristaps@ in 2011,
the again reported by afresh1@ in 2016,
and finally reported here: https://github.com/Debian/debiman/issues/21 ,
which i only found because of Shane Kerr's comment here:
https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc
---
 TODO | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

(limited to 'TODO')

diff --git a/TODO b/TODO
index 30313e90..f4b9a74e 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
 ************************************************************************
 * Official mandoc TODO.
-* $Id: TODO,v 1.224 2017/01/25 02:14:43 schwarze Exp $
+* $Id: TODO,v 1.225 2017/01/26 18:28:18 schwarze Exp $
 ************************************************************************
 
 Many issues are annotated for difficulty as follows:
@@ -193,10 +193,6 @@ are mere guesses, and some may be wrong.
   uqs@  Thu, 2 Jun 2011 11:33:35 +0200
   loc *  exist **  algo ***  size *  imp **
 
---- missing man features -----------------------------------------------
-
-- -T[x]html doesn't stipulate non-collapsing spaces in literal mode
-
 --- missing tbl features -----------------------------------------------
 
 - horizontal lines in the layout still consume data cells
@@ -408,11 +404,6 @@ are mere guesses, and some may be wrong.
 
 --- HTML issues --------------------------------------------------------
 
-- In -man -Thtml, .nf does not preserve indentation.
-  It should either convert blanks to  
-  or use 
 rather than 
(like .Bd -literal does). - Reported by afresh1@ 12 Apr 2016 14:35:45 -0700 - - .Bf at the beginning of a paragraph inserts a bogus 1ex horizontal space, see for example random(3). Introduced in http://mdocml.bsd.lv/cgi-bin/cvsweb/mdoc_html.c.diff?r1=1.91&r2=1.92 -- cgit v1.2.3-56-ge451