From bbca9de4c44fc5e7d5aa68015495daccc2f69081 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 13 May 2010 06:22:11 +0000 Subject: 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. --- libmdoc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libmdoc.h') 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 * @@ -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; -- cgit v1.2.3