utils.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:grical 作者: wikical 项目源码 文件源码
def html_diff(old_as_text, new_as_text): # {{{1
    """ returns a utf8 string containing the code of a html table showing
    differences of the utf8 parameters """
    old_as_text = old_as_text.splitlines()
    new_as_text = new_as_text.splitlines()
    table = HtmlDiff( tabsize = 4 ).make_table( old_as_text, new_as_text )
    return table.replace( ' ', ' ' ).replace( ' nowrap="nowrap"', '' )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号