From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p0G9uV8j012527 for ; Sun, 16 Jan 2011 04:56:32 -0500 (EST) Received: from smtp-2.sys.kth.se (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 0A43414DCD0; Sun, 16 Jan 2011 10:56:26 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by smtp-2.sys.kth.se (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RYN+CD8343RA; Sun, 16 Jan 2011 10:56:23 +0100 (CET) X-KTH-Auth: kristaps [85.8.61.72] X-KTH-mail-from: kristaps@bsd.lv Received: from h85-8-61-72.dynamic.se.alltele.net (h85-8-61-72.dynamic.se.alltele.net [85.8.61.72]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 7E25514DCBF; Sun, 16 Jan 2011 10:56:21 +0100 (CET) Message-ID: <4D32C0C4.4030207@bsd.lv> Date: Sun, 16 Jan 2011 10:56:20 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv CC: Ingo Schwarze Subject: Re: mdocml: Make -man -Tascii not break within literal lines References: <201101121523.p0CFNQNx028921@krisdoz.my.domain> <20110116035342.GE28336@iris.usta.de> In-Reply-To: <20110116035342.GE28336@iris.usta.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Here is the problem. > After your refactoring, this should now read "return". > > OK? > > > Index: man_term.c > =================================================================== > RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_term.c,v > retrieving revision 1.97 > diff -u -p -r1.97 man_term.c > --- man_term.c 12 Jan 2011 15:23:25 -0000 1.97 > +++ man_term.c 16 Jan 2011 03:49:36 -0000 > @@ -1,6 +1,6 @@ > /* $Id: man_term.c,v 1.97 2011/01/12 15:23:25 kristaps Exp $ */ > /* > - * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons > + * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons > * Copyright (c) 2010, 2011 Ingo Schwarze > * > * Permission to use, copy, modify, and distribute this software for any > @@ -864,7 +864,7 @@ print_man_node(DECL_ARGS) > */ > if ('\0' == *n->string) { > term_vspace(p); > - break; > + return; > } else if (' ' == *n->string&& MAN_LINE& n->flags) > term_newln(p); Ingo, great catch! Is it doing the same in -Thtml? You may want to check -mdoc too (in both cases)... They all use the same logic. Ok Kristaps. -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv