add a small bottom padding to inner box in header
diff --git a/R/add_header_above.R b/R/add_header_above.R
index 4ca0a33..90d018a 100644
--- a/R/add_header_above.R
+++ b/R/add_header_above.R
@@ -79,7 +79,7 @@
} else {
paste0('<th style="text-align:center; border-bottom:hidden; ',
'padding-bottom:0; padding-left:3px;padding-right:3px;" colspan="',
- x[2], '"><div style="border-bottom: 1px solid #ddd;">',
+ x[2], '"><div style="border-bottom: 1px solid #ddd;padding-bottom: 5px;">',
x[1], '</div></th>')
}
})
diff --git a/tests/visual_tests/add_header_above_html.Rmd b/tests/visual_tests/add_header_above_html.Rmd
index 6ae7359..12c7eb9 100644
--- a/tests/visual_tests/add_header_above_html.Rmd
+++ b/tests/visual_tests/add_header_above_html.Rmd
@@ -3,7 +3,7 @@
output: html_document
---
-# Plain LaTeX
+# Test table 1
```{r}
library(knitr)
library(kableExtra)
@@ -18,7 +18,7 @@
add_footnote(c("table footnote"))
```
-# Basic Bootstrap Table
+# Test table 2
```{r}
kable(dt, format = "html") %>%
kable_styling(full_width = F,