Move transitions at the end of sections up the tree. Complain on transitions after a title, at the beginning or end of the document, and after another transition.
For example, transform this:
<section> ... <transition> <section> ...
into this:
<section> ... <transition> <section> ...
Method | apply |
Override to apply the transform to the document tree. |
Method | visit_transition |
Undocumented |
Class Variable | default_priority |
Numerical priority of this transform, 0 through 999 (override). |
Inherited from Transform
:
Method | __init__ |
Initial setup for in-place document transforms. |
Instance Variable | document |
The document tree to transform. |
Instance Variable | language |
Language module local to this document. |
Instance Variable | startnode |
Node from which to begin the transform. For many transforms which apply to the document as a whole, startnode is not set (i.e. its value is None ). |