source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Stripping out of `\w' groff escape.
@ 2010-08-24 13:07 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-08-24 13:07 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-24 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-24 13:07 mdocml: Stripping out of `\w' groff escape kristaps

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).