Skip to main content

classify_break

Function classify_break 

Source
pub fn classify_break(prev_text_literal: Option<&str>) -> (bool, bool)
Expand description

How a line ending resolves (sections 6.7 and 6.8), given the literal of the text node immediately before it (None when that node is absent or not text). Two or more trailing spaces make a hard break; trim says the trailing spaces must be dropped from that node either way. Returns (hard, trim).