Open
Description
I have the following minimal Rmd bookdown example file named index.Rmd
:
---
documentclass: book
site: bookdown::bookdown_site
output:
bookdown::odt_document2: default
bookdown::epub_book: default
bookdown::word_document2: default
---
# Example code listing
See Example \@ref(exm:c-code).
::: {custom-style="ListingCaption"}
```{example, c-code}
Simple C program
```
:::
```c
int main()
{
exit(0);
}
```
Text after example.
With 0.21 it was rendered as "Example 1.1: Simple C program", but with 0.22 and latest version from github it renders as "Example 1.1 Simple C program". It breaks readability. See image below for odt-output:
I think that it is a regression bug.
Below is the table with Example separators comparison.
Version | docx | odt | epub |
---|---|---|---|
0.21 | : |
: |
: |
0.22+ | no | no | no |
Please confirm and fix this bug in the next version.
> xfun::session_info('bookdown')
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS, RStudio 1.4.1717
Locale:
LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=ru_RU.UTF-8
LC_COLLATE=en_US.UTF-8 LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES=en_US.UTF-8
LC_PAPER=ru_RU.UTF-8 LC_NAME=C LC_ADDRESS=C
LC_TELEPHONE=C LC_MEASUREMENT=ru_RU.UTF-8 LC_IDENTIFICATION=C
Package version:
base64enc_0.1.3 bookdown_0.22.11 digest_0.6.27 evaluate_0.14
glue_1.4.2 graphics_3.4.4 grDevices_3.4.4 highr_0.9
htmltools_0.5.1.1 jsonlite_1.7.2 knitr_1.33 magrittr_2.0.1
markdown_1.1 methods_3.4.4 mime_0.11 rlang_0.4.11
rmarkdown_2.9 stats_3.4.4 stringi_1.6.2 stringr_1.4.0
tinytex_0.32 tools_3.4.4 utils_3.4.4 xfun_0.24
yaml_2.2.1