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