View source: R/map_rd2markdown.R
clean_text_whitespace | R Documentation |
Within a series of text segments, the first text should have no leading whitespace, and all but the last element should end with at most one space character.
clean_text_whitespace(x)
x |
|
## Not run:
x <- list(" a ", "`b`", " c ", block(), " d \n", "e \n", "f")
clean_text_whitespace(x)
# list("a ", "`b`", " c ", block(), "d ", "e ", "f")
x <- list(block(), " a ", "`b`", " c ", block(), " d ", "e ", "f", block())
clean_text_whitespace(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.