summaryrefslogtreecommitdiffstats
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
commitf57412d689f445d6786167aac98dfde81c90ea12 (patch)
tree412635fca540b14d5139e91a039f78f70a7cf3d8 /strings.c
parentaaee43f80d524f98453fc13d60a657085867666f (diff)
downloadmandoc-f57412d689f445d6786167aac98dfde81c90ea12.tar.gz
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/strings.c b/strings.c
index 1abe92da..eb6a8917 100644
--- a/strings.c
+++ b/strings.c
@@ -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;
}