summaryrefslogtreecommitdiff
path: root/src/parse/properties/quotes.c
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/parse/properties/quotes.c
parent2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff)
downloadlibcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz
libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2
Strip trailing whitespace.
Diffstat (limited to 'src/parse/properties/quotes.c')
-rw-r--r--src/parse/properties/quotes.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/parse/properties/quotes.c b/src/parse/properties/quotes.c
index b7fc294..9d3c4c9 100644
--- a/src/parse/properties/quotes.c
+++ b/src/parse/properties/quotes.c
@@ -69,39 +69,39 @@ css_error css__parse_quotes(css_language *c,
uint32_t open_snumber;
uint32_t close_snumber;
- error = css__stylesheet_string_add(c->sheet,
- lwc_string_ref(token->idata),
+ error = css__stylesheet_string_add(c->sheet,
+ lwc_string_ref(token->idata),
&open_snumber);
- if (error != CSS_OK)
+ if (error != CSS_OK)
break;
consumeWhitespace(vector, ctx);
token = parserutils_vector_iterate(vector, ctx);
- if ((token == NULL) ||
+ if ((token == NULL) ||
(token->type != CSS_TOKEN_STRING)) {
error = CSS_INVALID;
break;
}
- error = css__stylesheet_string_add(c->sheet,
- lwc_string_ref(token->idata),
+ error = css__stylesheet_string_add(c->sheet,
+ lwc_string_ref(token->idata),
&close_snumber);
- if (error != CSS_OK)
+ if (error != CSS_OK)
break;
consumeWhitespace(vector, ctx);
error = CSS_FIRST_APPEND(QUOTES_STRING);
- if (error != CSS_OK)
+ if (error != CSS_OK)
break;
error = css__stylesheet_style_append(result, open_snumber);
- if (error != CSS_OK)
+ if (error != CSS_OK)
break;
error = css__stylesheet_style_append(result, close_snumber);
- if (error != CSS_OK)
+ if (error != CSS_OK)
break;
first = false;
@@ -115,7 +115,7 @@ css_error css__parse_quotes(css_language *c,
if (error == CSS_OK) {
/* AddTerminator */
error = css__stylesheet_style_append(result, QUOTES_NONE);
- }
+ }
} else {
error = CSS_INVALID;
}