aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-17 06:44:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-17 06:44:58 +0000
commita95737d0fe7d58cea73235887cdce9f58bae1335 (patch)
treeb1e382b6e729e9db6aff88da6d68fc0cb999f2af /libmdoc.h
parent194fdd32fe2e8d95e8130915d406a4509ac1caf7 (diff)
downloadmandoc-a95737d0fe7d58cea73235887cdce9f58bae1335.tar.gz
mandoc-a95737d0fe7d58cea73235887cdce9f58bae1335.tar.zst
mandoc-a95737d0fe7d58cea73235887cdce9f58bae1335.zip
Multiple fixes with respect to in-line macros:
* .No selects the default font; relevant e.g. in .Bf blocks * no need to force empty .Li elements * closing delimiters as leading macro arguments do not suppress space * opening delimiters at the end of a macro line do not suppress space * correctly handle delimiter spacing in -Tman As a side effect, these fixes let mandoc warn about empty .No macros as requested by bentley@.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 1507a8c2..f304769f 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,7 +1,7 @@
-/* $Id: libmdoc.h,v 1.88 2014/08/01 17:40:34 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.89 2014/11/17 06:44:58 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -37,6 +37,7 @@ struct mdoc {
#define MDOC_SYNOPSIS (1 << 7) /* SYNOPSIS-style formatting */
#define MDOC_KEEP (1 << 8) /* in a word keep */
#define MDOC_SMOFF (1 << 9) /* spacing is off */
+#define MDOC_NODELIMC (1 << 10) /* disable closing delimiter handling */
enum mdoc_next next; /* where to put the next node */
struct mdoc_node *last; /* the last node parsed */
struct mdoc_node *first; /* the first node parsed */