maybeInsertNewline
Insert a newline unless the current line is blank
Function parameters
Parameters
- ais:*AutoIndentingStream
Type definitions in this namespace
Types
Functions in this namespace
Functions
Error sets in this namespace
Error Sets
Source
Implementation
pub fn maybeInsertNewline(ais: *AutoIndentingStream) Error!void {
if (!ais.current_line_empty)
try ais.insertNewline();
}