(tag='', anchor='', anchor_id=0, style='_')
| 56 | return {'emit': 'Comment("%s")' % value, 'handle': ''} |
| 57 | |
| 58 | def seq_start(tag='', anchor='', anchor_id=0, style='_'): |
| 59 | emit = [] |
| 60 | handle = [] |
| 61 | if tag: |
| 62 | emit += ['VerbatimTag("%s")' % encode(tag)] |
| 63 | if anchor: |
| 64 | emit += ['Anchor("%s")' % encode(anchor)] |
| 65 | handle += ['OnAnchor(_, "%s")' % encode(anchor)] |
| 66 | if tag: |
| 67 | out_tag = encode(tag) |
| 68 | else: |
| 69 | out_tag = '?' |
| 70 | emit += ['BeginSeq'] |
| 71 | handle += ['OnSequenceStart(_, "%s", %s, %s)' % (out_tag, anchor_id, style)] |
| 72 | return {'emit': emit, 'handle': handle} |
| 73 | |
| 74 | def seq_end(): |
| 75 | return {'emit': 'EndSeq', 'handle': 'OnSequenceEnd()'} |
no test coverage detected