Skip to content

Commit

Permalink
table: fix html buffer output
Browse files Browse the repository at this point in the history
Prior to this commit, html output exhibits a doppler effect for
content by continually printing strings passed from
table_print_html_cell.

Fixes: cb139fa ("table: New function table_format() for formatting a table as a string.")
Cc: Ben Pfaff <[email protected]>
Cc: Jakub Sitnicki <[email protected]>
Signed-off-by: Aaron Conole <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
apconole authored and blp committed Aug 8, 2018
1 parent 3562353 commit c3cc694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/table.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static void
table_escape_html_text__(const char *content, size_t n, struct ds *s)
{
if (!strpbrk(content, "&<>\"")) {
ds_put_cstr(s, content);
ds_put_buffer(s, content, n);
} else {
size_t i;

Expand Down

0 comments on commit c3cc694

Please sign in to comment.