format a value to fit py3o's context

    * Handle linebreaks

def format_py3o_val(value):
    """
    format a value to fit py3o's context

    * Handle linebreaks
    """
    value = force_unicode(value)
    value = escape(value)
    value = value.replace(u'\n', u'<text:line-break/>')
    return Markup(value)