commit | 594057bd76a7b8369221b5c08d1e9d9ab25829f1 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Tue Jan 19 00:50:50 2021 -0500 |
committer | Hao Zhu <haozhu233@gmail.com> | Tue Jan 19 00:50:50 2021 -0500 |
tree | 1ad3f8f523f8d2e1c2cf754c6ea3c4b612190bbc | |
parent | 904d166ed7d63ea12443b0e1a90481085c13f660 [diff] |
fix minor bug in add_indent
diff --git a/R/add_indent.R b/R/add_indent.R index b53423f..3f57862 100644 --- a/R/add_indent.R +++ b/R/add_indent.R
@@ -109,7 +109,7 @@ for (j in target_cols) { node_to_edit <- xml_child(row_to_edit, j) if (!xml_has_attr(node_to_edit, "indentlevel")) { - xml_attr(node_to_edit, "style") <- paste( + xml_attr(node_to_edit, "style") <- paste0( xml_attr(node_to_edit, "style"), "padding-left: ",paste0(level_of_indent*2,"em;") ) xml_attr(node_to_edit, "indentlevel") <- 1