Example #1
0
def _exc_to_text(_, ctx):
    return u''.join(_piece_to_text(para, ctx) + u'\n'
                    for para in expand_error(ctx['error']))
Example #2
0
def _exc_to_html(_, ctx):
    for para in expand_error(ctx['error']):
        with H.p():
            _piece_to_html(para, ctx)
Example #3
0
def _exc_to_html(_, ctx):
    for para in expand_error(ctx['error']):
        with H.p(__pretty=False):
            _piece_to_html(para, ctx)