source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Accept "\s0" (i.e., properly ignore it).
Date: Thu, 22 Jul 2010 10:03:50 -0400 (EDT)	[thread overview]
Message-ID: <201007221403.o6ME3oqi031142@krisdoz.my.domain> (raw)

Log Message:
-----------
Accept "\s0" (i.e., properly ignore it).  Found in the wild (e.g., gfdl.7).

Modified Files:
--------------
    mdocml:
        mandoc.c
        out.c

Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lmandoc.c -Lmandoc.c -u -p -r1.25 -r1.26
--- mandoc.c
+++ mandoc.c
@@ -109,6 +109,9 @@ mandoc_special(char *p)
 		case ('\''):
 			term = '\'';
 			break;
+		case ('0'):
+			i++;
+			/* FALLTHROUGH */
 		default:
 			len = 1;
 			p--;
Index: out.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -Lout.c -Lout.c -u -p -r1.21 -r1.22
--- out.c
+++ out.c
@@ -255,6 +255,9 @@ a2roffdeco(enum roffdeco *d, const char 
 		case ('\''):
 			term = '\'';
 			break;
+		case ('0'):
+			j++;
+			/* FALLTHROUGH */
 		default:
 			i--;
 			lim = 1;
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2010-07-22 14:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007221403.o6ME3oqi031142@krisdoz.my.domain \
    --to=kristaps@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).