Skip to main content

docstring_block

Function docstring_block 

fn docstring_block(doc: &str, indent: usize) -> String
Expand description

Renders a docstring at indent columns.

Backslashes and embedded """ are escaped, so any /// comment — a LaTeX fragment included — round-trips into a legal Python string literal.