Sablon.DOM.Numbering (sablon v0.4.3)

Copy Markdown View Source

Creates list definitions in word/numbering.xml.

Each HTML list inserted into a document needs its own numbering definition, otherwise separate lists continue each other's numbering. A definition is built by cloning the abstract definition of the requested style, so the list keeps the look defined in the template.

Summary

Functions

Adds a list definition for style and returns it.

Functions

add_list_definition(document, style)

@spec add_list_definition(Sablon.XML.Document.t(), binary()) ::
  Sablon.DOM.Numbering.Definition.t()

Adds a list definition for style and returns it.

Raises when the template has no abstract numbering definition using that paragraph style.