aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-23 09:47:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-23 09:47:25 +0000
commitf6bc0fd9fcfb2e7b43ecfbce0031a626d9118240 (patch)
tree294307c13fd6eece92e5ec3609f2866bbba36976 /eqn.c
parentfa097d3df280b2adb39ec3b99fd44d324aa2fbb1 (diff)
downloadmandoc-f6bc0fd9fcfb2e7b43ecfbce0031a626d9118240.tar.gz
mandoc-f6bc0fd9fcfb2e7b43ecfbce0031a626d9118240.tar.zst
mandoc-f6bc0fd9fcfb2e7b43ecfbce0031a626d9118240.zip
The circumflex is also a special space character.
Note this and clean up some documentation in eqn.7. Also add some version notes, although I'm not ready for a release yet.
Diffstat (limited to 'eqn.c')
-rw-r--r--eqn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eqn.c b/eqn.c
index 9fa4602a..e43a0f2d 100644
--- a/eqn.c
+++ b/eqn.c
@@ -1,4 +1,4 @@
-/* $Id: eqn.c,v 1.30 2011/07/22 14:59:02 kristaps Exp $ */
+/* $Id: eqn.c,v 1.31 2011/07/23 09:47:25 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -648,7 +648,7 @@ again:
if ('{' == *start || '}' == *start)
ssz = 1;
else
- ssz = strcspn(start + 1, " ~\"{}\t") + 1;
+ ssz = strcspn(start + 1, " ^~\"{}\t") + 1;
next = start + (int)ssz;
if ('\0' == *next)
next = NULL;
@@ -662,6 +662,7 @@ again:
ep->cur++;
while (' ' == ep->data[(int)ep->cur] ||
'\t' == ep->data[(int)ep->cur] ||
+ '^' == ep->data[(int)ep->cur] ||
'~' == ep->data[(int)ep->cur])
ep->cur++;
} else {