On this page:
linebreak
nonbreaking
hspace
#{~}
#{~-~}
#{?-}
#{._  }
#{._  _  }
9.0.0.6

3.5 Spacing🔗ℹ

function

fun linebreak() :: Element

Forces a line break within a paragraph.

function

fun nonbreaking(pre_content :: PreContent) :: Element

Equivalent to calling elem with a style that prevents automatic line breaks within the element’s content.

function

fun hspace(n :: Nat) :: Element

Creates an Element that takes up horizontal whitespace equivalent to n fixed-width characters.

value

def #{~} :: Element

 

value

def #{~-~} :: Element

 

value

def #{?-} :: Element

 

value

def #{._} :: Element

 

value

def #{.__} :: Element

Constants for find-grained control of spacing and word breaks:

  • #{~} a non-breaking space

  • #{~-~} a non-breaking hyphen

  • #{?-} a hyphen that appears only if it’s at a line break

  • #{._} a period for ending an abbreviation in the middle of a sentence

  • #{.__} a period for ending a sentence