summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-04 14:56:51 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-09-04 14:56:51 +0100
commit2fcb157f28b152ba32e89baddbd811b0d6e76b79 (patch)
tree30f96332ac7993ff4acf88b4892f922a80ddd393 /src/utils
parent2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff)
downloadlibcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz
libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2
Strip trailing whitespace.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/parserutilserror.h2
-rw-r--r--src/utils/utils.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/parserutilserror.h b/src/utils/parserutilserror.h
index d2cffb6..2243b06 100644
--- a/src/utils/parserutilserror.h
+++ b/src/utils/parserutilserror.h
@@ -14,7 +14,7 @@
/**
* Convert a ParserUtils error into a LibCSS error
- *
+ *
* \param error The ParserUtils error to convert
* \return The corresponding LibCSS error
*/
diff --git a/src/utils/utils.c b/src/utils/utils.c
index 1745ea0..4bd93f6 100644
--- a/src/utils/utils.c
+++ b/src/utils/utils.c
@@ -10,7 +10,7 @@
css_fixed css__number_from_lwc_string(lwc_string *string,
bool int_only, size_t *consumed)
{
- if (string == NULL || lwc_string_length(string) == 0 ||
+ if (string == NULL || lwc_string_length(string) == 0 ||
consumed == NULL)
return 0;
@@ -77,7 +77,7 @@ css_fixed css__number_from_string(const uint8_t *data, size_t len,
}
/* And fracpart, again, assuming base 10 */
- if (int_only == false && len > 1 && ptr[0] == '.' &&
+ if (int_only == false && len > 1 && ptr[0] == '.' &&
('0' <= ptr[1] && ptr[1] <= '9')) {
ptr++;
len--;