**List of steps to reproduce** (step by step, including full links if applicable):
* Open translatable page
* Click "edit" (or "edit source") link next to a subheading
* Click "save"
**What happens?**:
By editing "Section 1", a blank line is added after <translate> tag of "Section 2".
```
<translate>
== Section 1== <!--T:1-->
</translate>
<translate><!--T:2--> Test1</translate>
{{anchor|Section 2}}
<translate>
== Section 2 == <!--T:3-->
</translate>
```
**What should have happened instead?**:
No blank lines are added.
```
<translate>
== Section 1== <!--T:1-->
</translate>
<translate><!--T:2--> Test1</translate>
{{anchor|Section 2}}
<translate>
== Section 2 == <!--T:3-->
</translate>
```
**Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc**:
* Example: https://www.mediawiki.org/w/index.php?title=Extension:PDFEmbed&diff=prev&oldid=4846874&diffmode=source
* Search "\n<translate>\n\n=="
** https://www.mediawiki.org/w/index.php?search=insource%3A%2F%5B%5E+-~%5D%5C%3Ctranslate%3E%5B%5E+-~%5D%5B%5E+-~%5D%3D%3D%2F&title=Special:Search
** https://meta.wikimedia.org/w/index.php?search=insource%3A%2F%5B%5E+-~%5D%5C%3Ctranslate%3E%5B%5E+-~%5D%5B%5E+-~%5D%3D%3D%2F&title=Special:Search