Skip to main content

break_allowed

Function break_allowed 

Source
pub fn break_allowed(prev: char, next: char) -> bool
Expand description

May a line break between prev and next?

  • never before a no-line-start character or before a space;
  • never after a no-line-end character;
  • always after a space (the engine drops a space at a break);
  • between two CJK characters;
  • nowhere else (inside Latin words, or where Latin and CJK touch without a space).