swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsSyntaxLibraries
 
  Related Syntax   Related Concepts  
 

#markup-end

 
 

Syntax

#markup-end event
    


Purpose

Use #markup-end to signal the end of a markup-region-event to a do markup-parse. A signal to #markup-end must be paired with a matching signal to #markup-start, with both referring to the same event (see ==).

The element rules in the following example merge consecutive para elements in each section into one:

  global markup-region-event first-para-event variable to 1
  
  element "section"
     output "%c"
     do when number of first-para-event = 1
        signal throw #markup-end first-para-event
        clear first-para-event
     done
  
  
  element "para"
     do when number of first-para-event = 0
        signal throw #markup-start #current-markup-event
        set new first-para-event to #current-markup-event
     done
     output #content
          

    Related Syntax
 
Related Concepts
 
 

Top [ INDEX ] [ CONCEPTS ] [ SYNTAX ] [ LIBRARIES ]

Abridged OmniMark 9.1.0 Documentation Generated: November 11, 2010 at 3:52:47 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.