mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
6389459b1e
This change does have two effects: 1. Instead of prepending a newline individually in every possible code path, we do it one time at the end. But only if there is something in the output. This does not change anything, as proven by the unchanged parser tests. 2. I removed the newline between the <h2> and the generated <references> element. Note that both these elements are created in the same method, next to each other. So there is no way this can influence other wikitext. Unfortunately this code path is executed only when using the *preview* function, and impossible to be covered by parser tests because of this. However, it's covered by unit tests. This refactoring is motivated by, but not required for T148701. Bug: T148701 Change-Id: I6691c70f8e3fa3f21e2d11035bed9cdc2dc87093 |
||
---|---|---|
.. | ||
parser | ||
phpunit | ||
selenium |