View source: R/map_rd2markdown.R
merge_text_spaces | R Documentation |
Within a series of text segments, there should be no separate text elements, which are spaces only. These should be merged together and to the next non-space element if possible.
merge_text_spaces(x)
x |
|
## Not run:
x <- list(" a ", "`b`", " ", " ", " c ", block(), "\n", "e \n", "f")
merge_text_spaces(x)
# list(" a ", "`b` ", " c ", block(), "\n", "e \n", "f")
x <- list(block(), " a ", "`b`", " c ", " ", block(), " ", " d ", "e ", "f", block())
merge_text_spaces(x)
# list(block(), "a ", "`b`", " c ", block(), " d ", "e ", "f", block())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.