Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Jul 14, 2023
1 parent 5c36cf6 commit 2808427
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ext/ox/sax.c
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ static char read_attrs(SaxDrive dr, char c, char termc, char term2, int is_xml,
c = buf_next_non_white(&dr->buf);
}
if ('=' != c) {
// TBD allow in smart mode
// TBD allow in smart mode
if (eq_req) {
dr->err = 1;
return c;
Expand Down Expand Up @@ -1328,7 +1328,7 @@ static char read_quoted_value(SaxDrive dr, bool inst) {
dr->buf.str = dr->buf.tail - 1;
// TBD if smart or html then no error
if (!(dr->options.smart && ox_hints_html() != dr->options.hints)) {
ox_sax_drive_error(dr, WRONG_CHAR "attribute value not in quotes");
ox_sax_drive_error(dr, WRONG_CHAR "attribute value not in quotes");
}
while ('\0' != (c = buf_get(&dr->buf))) {
switch (c) {
Expand All @@ -1342,11 +1342,11 @@ static char read_quoted_value(SaxDrive dr, bool inst) {
// dr->buf.tail is in the correct position, one after the word terminator
return c;
case '?': // for instructions
if (inst) {
*(dr->buf.tail - 1) = '\0'; /* terminate value */
return c;
}
break;
if (inst) {
*(dr->buf.tail - 1) = '\0'; /* terminate value */
return c;
}
break;
default: break;
}
}
Expand Down

0 comments on commit 2808427

Please sign in to comment.