Steps to replicate the issue
Start with the following Wikitext:
<ref name="book" /><ref name="book" /> <ref name="comic" /><ref name="comic" /> <references> <ref name="book">Book</ref> <ref name="comic">Comic</ref> </references>
- Load VE to edit it
- Add details to at least one ref of each type
- Look at the source code ( e.g. by using the diff )
What happens?:
The reference list includes an empty line now that was not there before
What should have happened instead?:
There should not be an unnecessary change.
First investigation results
- The issue seems to happen only when we have list defined refs.
- ve.dm.MWReferenceNode.prototype.copySyntheticRefIntoReferencesList will add a synthetic main refs whenever a ref is converted no existing synthetic main ref can be found.
- This also happens when there's already a list defined ref.