From 0bae01a379ba9702c03dfcf16874c3ec9beaa711 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 1 Jul 2010 22:35:54 +0000 Subject: In the mdoc(7) parser, inspect roff registers early such that all parts of the parser can use the resulting cues. In particular, this allows to use .nr nS to force SYNOPSIS-style .Nm indentation outside the SYNOPSIS as needed by ifconfig(8). To actually make this useable, .Pp must rewind .Nm, or the rest of the section would end up indented. Implement a quick hack for now, a generic solution can be designed later. ok kristaps@ and tested by sobrado@ --- libmdoc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libmdoc.h') diff --git a/libmdoc.h b/libmdoc.h index 579809cd..5cf1f647 100644 --- a/libmdoc.h +++ b/libmdoc.h @@ -36,6 +36,7 @@ struct mdoc { #define MDOC_PHRASELIT (1 << 4) /* literal within a partila phrase */ #define MDOC_PPHRASE (1 << 5) /* within a partial phrase */ #define MDOC_FREECOL (1 << 6) /* `It' invocation should close */ +#define MDOC_SYNOPSIS (1 << 7) /* SYNOPSIS-style formatting */ int pflags; enum mdoc_next next; /* where to put the next node */ struct mdoc_node *last; /* the last node parsed */ -- cgit