tidy_listing: Tidies a listing and indents correctly

Description Usage Arguments

Description

Indents the first line of a listing by spaces_first and the remaining lines by spaces_not_first while maintaining the correct width.

Usage

1
tidy_listing(listing, width, spaces = c(0, 0))

Arguments

listing

A listing, as described in the vignette "Data structures".

width

The target width of the lines, passed to tidy_lines().

spaces

Numeric vector of length two. Number of spaces for the first line and all remaining lines.


lorenzwalthert/stylermd documentation built on May 5, 2019, 1:36 a.m.