Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Use htmlDiff for webDiffer #3

Open
kakwok opened this issue Apr 9, 2018 · 0 comments
Open

Use htmlDiff for webDiffer #3

kakwok opened this issue Apr 9, 2018 · 0 comments

Comments

@kakwok
Copy link
Collaborator

kakwok commented Apr 9, 2018

difflib.htmlDiff provides considerably more readable diff tables than line-by-line diff.
webDiffer could use this method so that user will get a nice displace when re-directed from the bot message.
Here's short snippet of example usage:

  htmlDiffer = difflib.HtmlDiff(wrapcolumn=90)
  body = htmlDiffer.make_table(earlierCfgScript, laterCfgScript, "", "", True)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant