reduce_whitespace {parseLatex} | R Documentation |
Remove excess whitespace recursively
Description
Remove excess whitespace recursively
Usage
reduce_whitespace(items, recursive = TRUE, all = FALSE)
Arguments
items |
A LaTeX2 object. |
recursive |
Apply to all lists within |
all |
If |
Value
items
with double spaces or double newlines set to single,
and trailing spaces removed (or all whitespace removed, if all
is TRUE
).
Examples
parsed <- parseLatex("a {b\n\nc}")
parsed
reduce_whitespace(parsed)
[Package parseLatex version 0.4.1 Index]