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 o5SEdILf024066 for ; Mon, 28 Jun 2010 10:39:18 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o5SEdIOW016748; Mon, 28 Jun 2010 10:39:18 -0400 (EDT) Date: Mon, 28 Jun 2010 10:39:18 -0400 (EDT) Message-Id: <201006281439.o5SEdIOW016748@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: Notes: this must be done later. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Notes: this must be done later. \b in the input will cause havoc. Modified Files: -------------- mdocml: mdoc_validate.c man_validate.c Revision Data ------------- Index: mdoc_validate.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v retrieving revision 1.101 retrieving revision 1.102 diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.101 -r1.102 --- mdoc_validate.c +++ mdoc_validate.c @@ -458,6 +458,11 @@ check_text(struct mdoc *mdoc, int line, { int c; + /* + * FIXME: we absolutely cannot let \b get through or it will + * destroy some assumptions in terms of format. + */ + for ( ; *p; p++, pos++) { if ('\t' == *p) { if ( ! (MDOC_LITERAL & mdoc->flags)) Index: man_validate.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v retrieving revision 1.44 retrieving revision 1.45 diff -Lman_validate.c -Lman_validate.c -u -p -r1.44 -r1.45 --- man_validate.c +++ man_validate.c @@ -223,6 +223,11 @@ check_text(CHKARGS) return(c); } + /* + * FIXME: we absolutely cannot let \b get through or it + * will destroy some assumptions in terms of format. + */ + if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p) continue; if ( ! man_pmsg(m, n->line, pos, MANDOCERR_BADCHAR)) -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv