commit | f2dfd14759a038dd9ec7b52e48728cc2be6e0f7e | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jul 24 14:43:28 2017 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jul 24 14:43:28 2017 -0400 |
tree | bb0551fe68c7f0eba41f930984e72017b8e111e8 | |
parent | 9eeb10bb9d9e3d94c55b218a03bfe2faa8559a2e [diff] [blame] |
solve the XML declaration problem
diff --git a/R/add_indent.R b/R/add_indent.R index abcf058..cb4c141 100644 --- a/R/add_indent.R +++ b/R/add_indent.R
@@ -79,8 +79,7 @@ xml_attr(node_to_edit, "indentLevel") <- indentLevel + 1 } } - out <- structure(as.character(kable_xml), format = "html", - class = "knitr_kable") + out <- as_kable_xml(kable_xml) attributes(out) <- kable_attrs return(out) }