Fix a bug in the white-space remover.

This commit is contained in:
Poul-Henning Kamp 2003-03-04 19:20:52 +00:00
parent 3d006bcac3
commit 49efad87df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111876

View File

@ -163,7 +163,7 @@ CharData(void *userData , const XML_Char *s , int len)
b++;
while (isspace(*e) && e > b)
e--;
if (e != b)
if (e != b || *b)
sbuf_bcat(mt->cur->cont, b, e - b + 1);
}