Return markdown text with hanging indent
Usage
hanging_indent(
x,
indent = 4,
width = 30,
space = " ",
newline = "\\\\\n",
whitespace_only = FALSE
)
Arguments
- x
text
- indent
number of spaces to indent
- width
number of characters to break lines
- space
indenting space character
- newline
text for creating new line
- whitespace_only
wrapping spaces only
Examples
hanging_indent("Hello Darkness, my old friend. I've come to talk with you again.")
#> [1] "Hello Darkness, my old friend.\\\n I've come to talk with you\\\n again."