summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-14 05:36:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-14 05:36:07 +0000
commitc7786fc13e7b2236e756f79950f7ababcac56545 (patch)
tree153a7e0702d4a312ebad3441c7599b515b1dab07
parent87db307812249df3244dcee240f1c1684d76014e (diff)
downloadmandoc-c7786fc13e7b2236e756f79950f7ababcac56545.tar.gz
Bumped version.
Added \| (non-breaking space, like \&). Fixed termsym (TERMSYM_ALL).
-rw-r--r--Makefile4
-rw-r--r--mdocterm.c3
-rw-r--r--strings.c2
-rw-r--r--term.h3
4 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2824a0ef..dae5bf57 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.SUFFIXES: .html .sgml
-VERSION = 1.4.14
-VDATE = 13 March 2009
+VERSION = 1.4.15
+VDATE = 14 March 2009
BINDIR = $(PREFIX)/bin
INCLUDEDIR = $(PREFIX)/include
diff --git a/mdocterm.c b/mdocterm.c
index a2fb262a..635ed9c4 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -70,6 +70,7 @@ static struct termenc termenc1[] = {
{ "&", TERMSYM_BREAK },
{ "e", TERMSYM_SLASH },
{ "q", TERMSYM_DQUOTE },
+ { "|", TERMSYM_BREAK },
{ NULL, 0 }
};
@@ -125,7 +126,7 @@ static struct termenc termenc2[] = {
{ NULL, 0 }
};
-static struct termsym termsym_ansi[] = {
+static struct termsym termsym_ansi[TERMSYM_MAX] = {
{ "]", 1 }, /* TERMSYM_RBRACK */
{ "[", 1 }, /* TERMSYM_LBRACK */
{ "<-", 2 }, /* TERMSYM_LARROW */
diff --git a/strings.c b/strings.c
index 0feb7141..cd623833 100644
--- a/strings.c
+++ b/strings.c
@@ -89,6 +89,8 @@ mdoc_isescape(const char *p)
/* FALLTHROUGH */
case (' '):
/* FALLTHROUGH */
+ case ('|'):
+ /* FALLTHROUGH */
case ('&'):
/* FALLTHROUGH */
case ('.'):
diff --git a/term.h b/term.h
index 05b57a7d..15cb73f3 100644
--- a/term.h
+++ b/term.h
@@ -66,7 +66,8 @@ enum tsym {
TERMSYM_LANGLE = 37,
TERMSYM_RANGLE = 38,
TERMSYM_LBRACE = 39,
- TERMSYM_RBRACE = 40
+ TERMSYM_RBRACE = 40,
+ TERMSYM_MAX = 41
};