tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* ignore .ps and .ns
       [not found]     ` <201101151548.20037.brad@comstyle.com>
@ 2011-01-22 21:26       ` Ingo Schwarze
  0 siblings, 0 replies; only message in thread
From: Ingo Schwarze @ 2011-01-22 21:26 UTC (permalink / raw)
  To: tech; +Cc: brad

Hi,

Brad wrote on Sat, Jan 15, 2011 at 03:48:18PM -0500:

> mysql.1:1288:2: ERROR: skipping unknown macro: .ps +1
> mysql.1:1290:2: ERROR: skipping unknown macro: .ps -1

I think we can safely ignore these (point size).

While here, also ignore .ns (no-space mode) for now.
Implementing it is tedious, the macro is rare, and all that
goes wrong are one or two stray blank lines.

Of course, i will add short notes to roff(7).

OK?
  Ingo


Index: roff.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/roff.c,v
retrieving revision 1.30
diff -u -r1.30 roff.c
--- roff.c	20 Jan 2011 21:33:11 -0000	1.30
+++ roff.c	22 Jan 2011 21:24:52 -0000
@@ -51,6 +51,8 @@
 	ROFF_ne,
 	ROFF_nh,
 	ROFF_nr,
+	ROFF_ns,
+	ROFF_ps,
 	ROFF_rm,
 	ROFF_so,
 	ROFF_tr,
@@ -173,6 +175,8 @@
 	{ "ne", roff_line_ignore, NULL, NULL, 0, NULL },
 	{ "nh", roff_line_ignore, NULL, NULL, 0, NULL },
 	{ "nr", roff_nr, NULL, NULL, 0, NULL },
+	{ "ns", roff_line_ignore, NULL, NULL, 0, NULL },
+	{ "ps", roff_line_ignore, NULL, NULL, 0, NULL },
 	{ "rm", roff_rm, NULL, NULL, 0, NULL },
 	{ "so", roff_so, NULL, NULL, 0, NULL },
 	{ "tr", roff_line_ignore, NULL, NULL, 0, NULL },
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

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

only message in thread, other threads:[~2011-01-22 21:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201101092145.59321.brad@comstyle.com>
     [not found] ` <201101092333.13197.brad@comstyle.com>
     [not found]   ` <4D2DDDA2.5040803@bsd.lv>
     [not found]     ` <201101151548.20037.brad@comstyle.com>
2011-01-22 21:26       ` ignore .ps and .ns Ingo Schwarze

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