From 0ff0ed9ccba23c2bb72acd03d35240498c7dff6e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 5 Jan 2019 18:59:46 +0000 Subject: In HTML output, man(7) .RS blocks get formatted as
, and i can see no reasonable alternative: they do indeed represent indented displays. They certainly require flow context and make no sense in phrasing context. Consequently, they have to suspend no-fill mode during their head, in just the same way as other paragraph-type macros do it. This fixes HTML syntax errors that resulted from .nf followed by .RS. --- man_macro.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man_macro.c b/man_macro.c index eec4896c..d195576d 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.143 2019/01/05 00:36:50 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.144 2019/01/05 18:59:46 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012-2015, 2017-2019 Ingo Schwarze @@ -297,8 +297,10 @@ blk_exp(MACRO_PROT_ARGS) char *p; int la; - if (tok == MAN_RS) + if (tok == MAN_RS) { rew_scope(man, tok); + man->flags |= ROFF_NONOFILL; + } roff_block_alloc(man, line, ppos, tok); head = roff_head_alloc(man, line, ppos, tok); @@ -322,6 +324,7 @@ blk_exp(MACRO_PROT_ARGS) man_unscope(man, head); roff_body_alloc(man, line, ppos, tok); + man->flags &= ~ROFF_NONOFILL; } /* -- cgit v1.2.3-56-ge451