commit | 517453c4870ea4c20c9e185230dfade14bb61cc6 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Sun May 13 13:07:18 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Sun May 13 13:07:18 2018 -0400 |
tree | e9592e1a4b7ad6e86783445b4124705349205912 | |
parent | a2cb231d1def6457e0542506dda94d6392446e87 [diff] [blame] |
Fix a potential bug in column/row spec
diff --git a/R/column_spec.R b/R/column_spec.R index 1a07910..2e78586 100644 --- a/R/column_spec.R +++ b/R/column_spec.R
@@ -148,6 +148,9 @@ border_left, border_right, border_l_css, border_r_css, extra_css) { + if (is.na(xml_attr(target_cell, "style"))) { + xml_attr(target_cell, "style") <- "" + } if (!is.null(width)) { xml_attr(target_cell, "style") <- paste0(xml_attr(target_cell, "style"), "width: ", width, "; ")