From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p06E5CtO010053 for ; Thu, 6 Jan 2011 09:05:12 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p06E5C7B014328; Thu, 6 Jan 2011 09:05:12 -0500 (EST) Date: Thu, 6 Jan 2011 09:05:12 -0500 (EST) Message-Id: <201101061405.p06E5C7B014328@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make -literal displays only have 8-character displays. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Make -literal displays only have 8-character displays. From a low-hanging TODO added by schwarze@ on 15/08/10. Modified Files: -------------- mdocml: TODO mdoc_term.c Revision Data ------------- Index: TODO =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v retrieving revision 1.72 retrieving revision 1.73 diff -LTODO -LTODO -u -p -r1.72 -r1.73 --- TODO +++ TODO @@ -152,11 +152,6 @@ Also have `It' complain if `Pp' is invoked at certain times (not -compact?). -- .Bd -literal and .Bd -unfilled are *not* identical. - In -literal, tabs are 8 spaces. - In -unfilled, tabs are 5 spaces, just like in -filled and -ragged. - See the CCDF_* display in OpenBSD ccdconfig(8). - - .Nx 1.0a should be "NetBSD 1.0A", not "NetBSD 1.0a", see OpenBSD ccdconfig(8). Index: mdoc_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v retrieving revision 1.207 retrieving revision 1.208 diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.207 -r1.208 --- mdoc_term.c +++ mdoc_term.c @@ -1599,7 +1599,9 @@ termp_bd_pre(DECL_ARGS) return(1); tabwidth = p->tabwidth; - p->tabwidth = term_len(p, 8); + if (DISP_literal == n->norm->Bd.type) + p->tabwidth = term_len(p, 8); + rm = p->rmargin; rmax = p->maxrmargin; p->rmargin = p->maxrmargin = TERM_MAXMARGIN; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv