Quote:
Originally Posted by Zillion_
Hello, may I suggest a feature enhancement ? Would it be possible to configure parameters for the plugin, e.g. the "wrap columns at" (default=60, I like to set it higher), Tab size, Context handling, etc.
|
Hello Zillion_,
wrap columns and tab size works as expected (see attached images with wraps at 60 resp. 100 Characters).
> Also, question: what's the difference in the context handling between plugin and htmldiff ?
Handling by htmldiff (quote from the documentation):
context and numlines are both optional keyword arguments. Set context to True when contextual differences are to be shown, else the default is False to show the full files. numlines defaults to 5. When context is True numlines controls the number of context lines which surround the difference highlights. When context is False numlines controls the number of lines which are shown before a difference highlight when using the “next” hyperlinks (setting to zero would cause the “next” hyperlinks to place the next difference highlight at the top of the browser without any leading context).
https://docs.python.org/3/library/difflib.html
Strategy is:
- Put diff without table body in new text blob with marker for revised table body
- Loop thru table body rows and build another text blob
- Replace marker in text blob 1 with text blob 2
Context handling by the plugin:
The plugin strips identical lines from the diff result, preserving n context lines (as set by user):
abc ...
[18 identical line(s).]
def...
BTW, there is a new version out (1.2.3).