source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Stripping out of `\w' groff escape.
Date: Tue, 24 Aug 2010 09:07:01 -0400 (EDT)	[thread overview]
Message-ID: <201008241307.o7OD71bH012992@krisdoz.my.domain> (raw)

Log Message:
-----------
Stripping out of `\w' groff escape.  Yet another for pod2man...

Modified Files:
--------------
    mdocml:
        man.7
        mandoc.c
        mdoc.7
        out.c

Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -Lmandoc.c -Lmandoc.c -u -p -r1.30 -r1.31
--- mandoc.c
+++ mandoc.c
@@ -55,8 +55,6 @@ mandoc_special(char *p)
 		/* FALLTHROUGH */
 	case ('x'):
 		/* FALLTHROUGH */
-	case ('w'):
-		/* FALLTHROUGH */
 	case ('S'):
 		/* FALLTHROUGH */
 	case ('R'):
@@ -178,6 +176,12 @@ mandoc_special(char *p)
 			return(*p ? (int)(p - sv) : 0);
 		}
 		break;
+	case ('w'):
+		if ('\'' == *p++) {
+			term = '\'';
+			break;
+		}
+		/* FALLTHROUGH */
 	default:
 		len = 1;
 		p--;
Index: man.7
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.7,v
retrieving revision 1.83
retrieving revision 1.84
diff -Lman.7 -Lman.7 -u -p -r1.83 -r1.84
--- man.7
+++ man.7
@@ -938,11 +938,12 @@ The
 .Pq text filling colour ,
 .Sq \ez
 .Pq zero-length character ,
+.Sq \ew
+.Pq string length ,
 and
 .Sq \es
 .Pq text size
-.Sx Text Decoration
-escapes are all discarded in mandoc.
+escape sequences are all discarded in mandoc.
 .It
 The
 .Sq \ef
Index: out.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lout.c -Lout.c -u -p -r1.25 -r1.26
--- out.c
+++ out.c
@@ -293,6 +293,12 @@ a2roffdeco(enum roffdeco *d, const char 
 		} else
 			lim = 1;
 		break;
+	case ('w'):
+		if ('\'' == wp[i++]) {
+			term = '\'';
+			break;
+		} 
+		/* FALLTHROUGH */
 	default:
 		*d = DECO_SSPECIAL;
 		i--;
Index: mdoc.7
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc.7,v
retrieving revision 1.152
retrieving revision 1.153
diff -Lmdoc.7 -Lmdoc.7 -u -p -r1.152 -r1.153
--- mdoc.7
+++ mdoc.7
@@ -2846,11 +2846,12 @@ The
 .Pq text filling colour ,
 .Sq \ez
 .Pq zero-length character ,
+.Sq \ew
+.Pq string length ,
 and
 .Sq \es
 .Pq text size
-.Sx Text Decoration
-escapes are all discarded in mandoc.
+escape sequences are all discarded in mandoc.
 .It
 The
 .Sq \ef
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2010-08-24 13:07 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=201008241307.o7OD71bH012992@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).