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 | cbbc5d9c65e8e730b6c8d3aa839137be0a97474b (patch) | |
tree | 3d98dafe619af6222b93da1039057f78abcfb9ee /html.c | |
parent | 2b410ed7871c140f726a9665d3810f82e69f67ff (diff) | |
download | mandoc-cbbc5d9c65e8e730b6c8d3aa839137be0a97474b.tar.gz mandoc-cbbc5d9c65e8e730b6c8d3aa839137be0a97474b.tar.zst mandoc-cbbc5d9c65e8e730b6c8d3aa839137be0a97474b.zip |
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 | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.96 2010/02/17 19:48:33 kristaps Exp $ */ +/* $Id: html.c,v 1.97 2010/04/03 12:46:35 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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: |