summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 14:05:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 14:05:45 +0000
commitd5822e61b86d3e01e8c8d87feb97cabb4ad9d67d (patch)
tree439a6c27b466f868e39f65342ef862ecdca567b1 /term.c
parent08cbd42d2a572e1adaf5a6aa56d2837a739274e6 (diff)
downloadmandoc-d5822e61b86d3e01e8c8d87feb97cabb4ad9d67d.tar.gz
Move mandoc_isdelim() back into libmdoc.h. This fixes an unreported
error where (1) -man pages were punctuating delimiters (e.g., `.B a ;') and where (2) standalone punctuation in -mdoc or -man (e.g., ";" on its own line) would also be punctuated. This introduces a small amount of complexity of mdoc_{html,term}.c must manage their own spacing with running print_word() or print_text(). The check for delimiting now happens in mdoc_macro.c's dword().
Diffstat (limited to 'term.c')
-rw-r--r--term.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/term.c b/term.c
index 2f86a76e..087bf061 100644
--- a/term.c
+++ b/term.c
@@ -462,10 +462,6 @@ term_word(struct termp *p, const char *word)
sv = word;
- if (DELIM_CLOSE == mandoc_isdelim(word))
- if ( ! (TERMP_IGNDELIM & p->flags))
- p->flags |= TERMP_NOSPACE;
-
if ( ! (TERMP_NOSPACE & p->flags)) {
if ( ! (TERMP_KEEP & p->flags)) {
if (TERMP_PREKEEP & p->flags)
@@ -526,9 +522,6 @@ term_word(struct termp *p, const char *word)
if (DECO_NOSPACE == deco && '\0' == *word)
p->flags |= TERMP_NOSPACE;
}
-
- if (DELIM_OPEN == mandoc_isdelim(sv))
- p->flags |= TERMP_NOSPACE;
}