I think someone must have reported this?
When using section editing, the <!--T:N--> of the next section title is included at the end of the edit area. And since MediaWiki forces a trailing newline when submitting, the translation mark is not immediately followed by the next title, which throws an error to the user. This causes big inconvenience, the section editing is nearly not available.
eg. Full page:
<translate> <!--T:1--> == Foo == bar <!--T:2--> == Baz == </translate>
When editing section "Foo", the user sees:
== Foo == bar <!--T:2-->
Even if the user removes the trailing newline, it will be added when sending to the server side. And finally the error checker sees:
<translate> <!--T:1--> == Foo == bar <!--T:2--> == Baz == </translate>
Is it possible to not include the translation mark in the edit area, or to try removing newlines when checking the translation?