aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-02 17:14:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-02 17:14:46 +0000
commit162ce81d3a61862bea3503763f631cf91bd28023 (patch)
treec48fa77b4506ea1d073a0f402c7d2c5b0f0754f4 /strings.c
parentc6e959568733601f6b74e21b18a4243e63f53f3b (diff)
downloadmandoc-162ce81d3a61862bea3503763f631cf91bd28023.tar.gz
mandoc-162ce81d3a61862bea3503763f631cf91bd28023.tar.zst
mandoc-162ce81d3a61862bea3503763f631cf91bd28023.zip
Added new old escape sequence \*[nn].
Initial correct .Bd support (still only text in literal displays). Symbols put into tables (character-encoding).
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 4910e308..6d07edea 100644
--- a/strings.c
+++ b/strings.c
@@ -1,4 +1,4 @@
-/* $Id: strings.c,v 1.23 2009/03/02 12:09:32 kristaps Exp $ */
+/* $Id: strings.c,v 1.24 2009/03/02 17:14:46 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -69,6 +69,11 @@ mdoc_isescape(const char *p)
if (0 == *++p || ! isgraph((int)*p))
return(0);
return(4);
+ case ('['):
+ for (c = 3, p++; *p && ']' != *p; p++, c++)
+ if ( ! isgraph((int)*p))
+ break;
+ return(*p == ']' ? c : 0);
default:
break;
}