jayvdb added a comment.
The solution in Change 278967 is to highlight the same character positions in
the amended line. So the highlights are in `**` below
>>> Manual:Pywikibot/Compat/picasacopier.py <<<
@@ -7 +7 @@
- Picasacopier is part of Pywikipedia. You first need to install
pywikipedia. At [[Pywiki**pedia**bot/Basic use|Using the python wikipediabot]]
you can find a manual on how to install pywikipedia. SVN install is
recommended.
+ Picasacopier is part of Pywikipedia. You first need to install
pywikipedia. At [[Pywiki**bot/B**asic use|Using the python wikipediabot]] you
can find a manual on how to install pywikipedia. SVN install is recommended.
When testing on
https://test.wikipedia.org/wiki/User:John_Vandenberg/diff_test, that change
correctly handles when the amended line is shorter than the last position of
the remove text.
>>> User:John Vandenberg/diff test <<<
@@ -1,2 +1,2 @@
- Pywiki**pedia**bot foo
+ Pywiki**bot f**oo
- Pywiki**pedia**bot
+ Pywiki**bot**
TASK DETAIL
https://phabricator.wikimedia.org/T130572
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: gerritbot, Mpaa, Aklapper, jayvdb, pywikibot-bugs-list, Lewizho99
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs