Return markdown text with hanging indent
Usage
hanging_indent(
x,
indent = 4,
width = 30,
space = NULL,
newline = "\\\\\n",
whitespace_only = FALSE,
wrap_equal_width = FALSE
)Arguments
- x
text
- indent
number of
spacecharacters that indent the second and later lines- width
maximum number of characters per line
- space
indenting character. If
NULL(default), a non-breaking space.- newline
text inserted at each line break (default: a markdown hard line break, a backslash followed by a newline)
- whitespace_only
if
TRUE, lines break only at spaces. IfFALSE(default), they can also break after hyphens and slashes (seestringr::str_wrap()).- wrap_equal_width
if
TRUE, lines are made roughly equal in width (seestr_wrap_equal()). IfFALSE(default), each line is filled up towidth.