summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
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
commit3fda22a3295512e8e8f926289401b1e249ab3b40 (patch)
treea71a50d2c487e193a5e4588f5d804f766536be28 /mdocterm.c
parent47a3a2b11dd9c321362d7104337e82cb7170da95 (diff)
downloadmandoc-3fda22a3295512e8e8f926289401b1e249ab3b40.tar.gz
Removed isspace assertion (is handled by pad).
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mdocterm.c b/mdocterm.c
index c2c3710b..52c46551 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -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