added '\n' to is_spacechar()

This commit is contained in:
2018-04-24 05:24:58 +00:00
parent 7db51ee889
commit eb8691b5bd
2 changed files with 5 additions and 2 deletions

View File

@ -154,6 +154,8 @@ static HCL_INLINE int is_spacechar (hcl_bch_t c)
/* TODO: handle other space unicode characters */
switch (c)
{
/* [NOTE]: '\n' is special and used as delimiter. so it's not treated
* as a space character */
case ' ':
case '\f': /* formfeed */
case '\r': /* carriage return */