(tag='', anchor='', anchor_id=0, style='_')
| 75 | return {'emit': 'EndSeq', 'handle': 'OnSequenceEnd()'} |
| 76 | |
| 77 | def map_start(tag='', anchor='', anchor_id=0, style='_'): |
| 78 | emit = [] |
| 79 | handle = [] |
| 80 | if tag: |
| 81 | emit += ['VerbatimTag("%s")' % encode(tag)] |
| 82 | if anchor: |
| 83 | emit += ['Anchor("%s")' % encode(anchor)] |
| 84 | handle += ['OnAnchor(_, "%s")' % encode(anchor)] |
| 85 | if tag: |
| 86 | out_tag = encode(tag) |
| 87 | else: |
| 88 | out_tag = '?' |
| 89 | emit += ['BeginMap'] |
| 90 | handle += ['OnMapStart(_, "%s", %s, %s)' % (out_tag, anchor_id, style)] |
| 91 | return {'emit': emit, 'handle': handle} |
| 92 | |
| 93 | def map_end(): |
| 94 | return {'emit': 'EndMap', 'handle': 'OnMapEnd()'} |
no test coverage detected