$return .= isset( $table['caption']['attributes'] ) ? $table['caption']['attributes'] : '';
$return .= '>';
$return .= $table['caption']['content'];
- $return .= '</caption>';
+ $return .= "\n</caption>";
}
$lastSection = '';
$empty = true;
|}
!! result
<table>
-<caption>caption</caption>
+<caption>caption
+</caption>
<tr><td></td></tr>
</table>
|}
!! result
<table border="1" cellpadding="2">
-<caption>Multiplication table</caption>
+<caption>Multiplication table
+</caption>
<thead>
<tr>
<th>×</th>
|}
!! result
<table>
-<caption><i>caption</i></caption>
+<caption><i>caption</i>
+</caption>
<tr>
<td>Cell</td>
</tr>