summaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-13 06:22:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-13 06:22:11 +0000
commitbbca9de4c44fc5e7d5aa68015495daccc2f69081 (patch)
treea958d78176c6f69c955bca59a0eed757293c2ef1 /libmdoc.h
parentfa29183f6542c3a65f105c7296ce435beb629a12 (diff)
downloadmandoc-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 'libmdoc.h')
-rw-r--r--libmdoc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 8b76c95f..0d3bad59 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.41 2010/05/12 08:41:17 kristaps Exp $ */
+/* $Id: libmdoc.h,v 1.42 2010/05/13 06:22:11 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -28,9 +28,10 @@ struct mdoc {
void *data;
struct mdoc_cb cb;
int flags;
-#define MDOC_HALT (1 << 0) /* Error in parse. Halt. */
-#define MDOC_LITERAL (1 << 1) /* In a literal scope. */
-#define MDOC_PBODY (1 << 2) /* In the document body. */
+#define MDOC_HALT (1 << 0) /* error in parse: halt */
+#define MDOC_LITERAL (1 << 1) /* in a literal scope */
+#define MDOC_PBODY (1 << 2) /* in the document body */
+#define MDOC_NEWLINE (1 << 3) /* first macro/text in a line */
int pflags;
enum mdoc_next next;
struct mdoc_node *last;