Skip to main content

has_trailing_newline

Function has_trailing_newline 

Source
pub fn has_trailing_newline(segment: &Segment) -> bool
Expand description

Check if a segment ends with a Newline (possibly preceded by Whitespace). Used by layout rules (LT07, LT14) to detect newlines absorbed into clause bodies.