In this diff:
displays. But in wikEdDiff,
displays, which has blocked sections. And in 'block' diff, the geography is also better because it includes the separate section with line #:
There should be some sort of indication (even?) in inline mode that those two sections are geographically distant (perhaps just an <hr>). It was a very confusing diff when I looked at it this morning.
Acceptance criteria
- Inline diffs should surface line numbers as provided by wikidiff2
- These are surfaced if there are for example changes across multiple paragraphs, or if line numbers changed significantly from the old revision versus the new.
- The logic of when to show line numbers is not part of this task. We're using the default behaviour that already exist in wikidiff2.
- The line numbers should be in the form of Line 5 ⟶ 10:, where 5 is the previous line number, and 10 is the line as of the new revision.
- If the line numbers haven't changed (i.e. both the previous and new line numbers are 5), it should use the shorter message Line 5:
- If the reducedLineNumbers option is true (as it is on our cluster), you shouldn't ever see Line 1:, but you may see for example Line 1 ⟶ 5.
- TBD: How to turn on this mode? Is it a config setting?
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅AC1: Inline diffs should surface line numbers as provided by wikidiff2 here | |
2 | ✅AC2: The line numbers should be in the form of Line 5 ⟶ 10:, where 5 is the previous line number, and 10 is the line as of the new revision. | |
3 | ✅AC3: If the line numbers haven't changed (i.e. both the previous and new line numbers are 5), it should use the shorter message Line 5: | |
4 | ✅AC4: If the reducedLineNumbers option is true (as it is only for MediaWiki-extensions-Translate), you shouldn't ever see Line 1:, but you may see for example Line 1 ⟶ 5. | |