case BLOCK_TABLE:
pad(out, 2, scratch);
- print_const("<table>\n");
+ print_const("<table");
// Are we followed by a caption?
if (table_has_caption(t)) {
}
temp_char = label_from_token(source, temp_token);
- printf("<caption style=\"caption-side: bottom;\" id=\"%s\">", temp_char);
+ printf(" id=\"%s\">\n<caption style=\"caption-side: bottom;\">", temp_char);
free(temp_char);
t->next->child->child->type = TEXT_EMPTY;
print_const("</caption>\n");
temp_short = 1;
} else {
+ print_const(">\n");
temp_short = 0;
}
<p>15</p>
-<table>
-<caption style="caption-side: bottom;" id="foobar"><abbr title="FOO BAR">foo bar</abbr></caption>
+<table id="foobar">
+<caption style="caption-side: bottom;"><abbr title="FOO BAR">foo bar</abbr></caption>
<colgroup>
<col />
<col />
</tbody>
</table>
-<table>
-<caption style="caption-side: bottom;" id="bar"><em>caption</em></caption>
+<table id="bar">
+<caption style="caption-side: bottom;"><em>caption</em></caption>
<colgroup>
<col />
<col />
</tbody>
</table>
-<table>
-<caption style="caption-side: bottom;" id="caption"><em>caption</em></caption>
+<table id="caption">
+<caption style="caption-side: bottom;"><em>caption</em></caption>
<colgroup>
<col />
<col />
<p>6</p>
-<table>
-<caption style="caption-side: bottom;" id="bar"><em>caption</em></caption>
+<table id="bar">
+<caption style="caption-side: bottom;"><em>caption</em></caption>
<colgroup>
<col />
<col />
</tbody>
</table>
-<table>
-<caption style="caption-side: bottom;" id="notrailingnewline"><strong>no trailing newline</strong></caption>
+<table id="notrailingnewline">
+<caption style="caption-side: bottom;"><strong>no trailing newline</strong></caption>
<colgroup>
<col />
<col />