fix: table template
This commit is contained in:
parent
81858ead8c
commit
0ddea07f39
|
@ -173,9 +173,9 @@ class Template implements TemplateInterface {
|
|||
|
||||
if (html) {
|
||||
const hasColGroup = html.indexOf('<colgroup') > -1;
|
||||
html = transformCustomTags(html);
|
||||
html = transformCustomTags(html) || html;
|
||||
if (!hasColGroup) {
|
||||
html = replace(/^(<table[^>]+>)/, function (match) {
|
||||
html = html?.replace(/^(<table[^>]+>)/, function (match) {
|
||||
return match + colgroup;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue