summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 23:23:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 23:23:55 +0000
commitc9d2f2eb8c4859fa1d34a7437b37496ba8848b82 (patch)
treee30a04e80d208b09236c860ce56dfd103853e89c
parent67a3b6c851566d68fb74eccb2b33cb3de56b314d (diff)
downloadmandoc-c9d2f2eb8c4859fa1d34a7437b37496ba8848b82.tar.gz
mandoc-c9d2f2eb8c4859fa1d34a7437b37496ba8848b82.tar.zst
mandoc-c9d2f2eb8c4859fa1d34a7437b37496ba8848b82.zip
Removed isspace assertion (is handled by pad).
-rw-r--r--mdocterm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mdocterm.c b/mdocterm.c
index d4df8a39..499c4da1 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -1,4 +1,4 @@
-/* $Id: mdocterm.c,v 1.22 2009/03/01 13:06:49 kristaps Exp $ */
+/* $Id: mdocterm.c,v 1.23 2009/03/01 23:23:55 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -173,9 +173,10 @@ flushln(struct termp *p)
for (i = 0; i < p->col; i++) {
/*
* Count up visible word characters. Control sequences
- * (starting with the CSI) aren't counted.
+ * (starting with the CSI) aren't counted. A space
+ * generates a non-printing word, which is valid (the
+ * space is printed according to regular spacing rules).
*/
- assert( ! xisspace(p->buf[i]));
/* LINTED */
for (j = i, vsz = 0; j < p->col; j++) {
@@ -187,7 +188,6 @@ flushln(struct termp *p)
} else
vsz++;
}
- assert(vsz > 0);
/*
* If we're breaking normally...
@@ -499,8 +499,6 @@ pword(struct termp *p, const char *word, size_t len)
{
size_t i;
- /*assert(len > 0);*/ /* Can be, if literal. */
-
/*
* Handle pwords, partial words, which may be either a single
* word or a phrase that cannot be broken down (such as a