diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-13 06:22:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-13 06:22:11 +0000 |
commit | bbca9de4c44fc5e7d5aa68015495daccc2f69081 (patch) | |
tree | a958d78176c6f69c955bca59a0eed757293c2ef1 /mdoc.h | |
parent | fa29183f6542c3a65f105c7296ce435beb629a12 (diff) | |
download | mandoc-bbca9de4c44fc5e7d5aa68015495daccc2f69081.tar.gz mandoc-bbca9de4c44fc5e7d5aa68015495daccc2f69081.tar.zst mandoc-bbca9de4c44fc5e7d5aa68015495daccc2f69081.zip |
Fixed bug in -Thtml -mdoc where `Lb' would line-break in LIBRARY section.
Fixed assumption that parse-point == 1 equates to beginning of line (false if whitespace separates macro and control character).
Fixed line-break for non-first-macro in several SYNOPSIS macros.
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.77 2010/05/12 16:01:01 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.78 2010/05/13 06:22:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -249,21 +249,21 @@ struct mdoc_arg { /* Node in AST. */ struct mdoc_node { - struct mdoc_node *parent; - struct mdoc_node *child; - struct mdoc_node *next; - struct mdoc_node *prev; - int nchild; - int line; - int pos; - enum mdoct tok; + struct mdoc_node *parent; /* parent AST node */ + struct mdoc_node *child; /* first child AST node */ + struct mdoc_node *next; /* sibling AST node */ + struct mdoc_node *prev; /* prior sibling AST node */ + int nchild; /* number children */ + int line; /* parse line */ + int pos; /* parse column */ + enum mdoct tok; /* tok or MDOC__MAX if none */ int flags; -#define MDOC_VALID (1 << 0) -#define MDOC_ACTED (1 << 1) -#define MDOC_EOS (1 << 2) - enum mdoc_type type; - enum mdoc_sec sec; - +#define MDOC_VALID (1 << 0) /* has been validated */ +#define MDOC_ACTED (1 << 1) /* has been acted upon */ +#define MDOC_EOS (1 << 2) /* at sentence boundary */ +#define MDOC_LINE (1 << 3) /* first macro/text on line */ + enum mdoc_type type; /* AST node type */ + enum mdoc_sec sec; /* current named section */ struct mdoc_arg *args; /* BLOCK/ELEM */ #ifdef UGLY struct mdoc_node *pending; /* BLOCK */ |