summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 12:46:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 12:46:35 +0000
commitcbbc5d9c65e8e730b6c8d3aa839137be0a97474b (patch)
tree3d98dafe619af6222b93da1039057f78abcfb9ee /mdoc_strings.c
parent2b410ed7871c140f726a9665d3810f82e69f67ff (diff)
downloadmandoc-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 'mdoc_strings.c')
-rw-r--r--mdoc_strings.c12
1 files changed, 6 insertions, 6 deletions
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 <kristaps@kth.se>
*
@@ -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;