diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-03 12:46:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-03 12:46:35 +0000 |
commit | 4a9daab0eee75a39e31cd397377bcf847eb585f1 (patch) | |
tree | bbde44994514beaf913899466e01f6b1be513e4d /html.c | |
parent | 754ba163b105d22e1c80b267aa2e821719cee077 (diff) | |
download | mandoc-4a9daab0eee75a39e31cd397377bcf847eb585f1.tar.gz |
Removed erroneous `{' and `}' as punctuation (see mdoc.samples "General Syntax" for why this mistake was made). Noted by Ingo Schwarze.
Lines of text now break at a hyphen, unless the hyphen is the first or second subsequent in a word. Inspired by a Ingo Schwarze's patch.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -507,8 +507,6 @@ print_text(struct html *h, const char *p) case(')'): /* FALLTHROUGH */ case(']'): - /* FALLTHROUGH */ - case('}'): if ( ! (HTML_IGNDELIM & h->flags)) h->flags |= HTML_NOSPACE; break; @@ -525,11 +523,11 @@ print_text(struct html *h, const char *p) if (*p && 0 == *(p + 1)) switch (*p) { + case('|'): + /* FALLTHROUGH */ case('('): /* FALLTHROUGH */ case('['): - /* FALLTHROUGH */ - case('{'): h->flags |= HTML_NOSPACE; break; default: |