app.py 文件源码

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

项目:oabot 作者: dissemin 项目源码 文件源码
def make_diff(old, new):
    """
    Render in HTML the diff between two texts
    """
    df = HtmlDiff()
    old_lines = old.splitlines(1)
    new_lines = new.splitlines(1)
    html = df.make_table(old_lines, new_lines, context=True)
    html = html.replace(' nowrap="nowrap"','')
    return html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号