Skip to main content

Module code_width

Module code_width 

Source
Expand description

Code-width rule — mirrors journals/jss/rules/code_width.py (JSS-WIDTH-001).

Functions§

check_width_001
JSS-WIDTH-001 — code lines inside code-display environments (Sinput/Soutput/CodeInput/CodeOutput/verbatim/Verbatim/Code/Scode) must fit within code_width columns. column on the returned violation is deliberately the offending length, not a real column — matches code_width.py::_violation’s documented quirk (width violations are line-anchored, not position-anchored).