From cbbc5d9c65e8e730b6c8d3aa839137be0a97474b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 3 Apr 2010 12:46:35 +0000 Subject: 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. --- mdoc_strings.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mdoc_strings.c') diff --git a/mdoc_strings.c b/mdoc_strings.c index 4aa71142..9007fa32 100644 --- a/mdoc_strings.c +++ b/mdoc_strings.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_strings.c,v 1.15 2010/03/29 19:28:04 kristaps Exp $ */ +/* $Id: mdoc_strings.c,v 1.16 2010/04/03 12:46:35 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -61,18 +61,20 @@ static const struct mdoc_secname secnames[SECNAME_MAX] = { }; +/* + * FIXME: this is repeated in print_text() (html.c) and term_word() + * (term.c). + */ int mdoc_iscdelim(char p) { switch (p) { - case('|'): + case('|'): /* FIXME! */ /* FALLTHROUGH */ case('('): /* FALLTHROUGH */ case('['): - /* FALLTHROUGH */ - case('{'): return(1); case('.'): /* FALLTHROUGH */ @@ -89,8 +91,6 @@ mdoc_iscdelim(char p) case(')'): /* FALLTHROUGH */ case(']'): - /* FALLTHROUGH */ - case('}'): return(2); default: break; -- cgit v1.2.3