Page MenuHomePhabricator

Polygons added in VE create 4 lines of code for each node of the polygon
Closed, ResolvedPublic

Description

As reported on dewiki:

When I add a polygon to a map via VisualEditor, the wikitext that is created uses 4 lines for each node of the polygon.

The output created by the VE …could be shortened like this:
Bildschirmfoto 2022-07-07 um 18.03.30.png (866×330 px, 46 KB)
Bildschirmfoto 2022-07-07 um 18.03.55.png (830×472 px, 99 KB)

Shortening the wikitext would make the whole wikitext easier to navigate.

Event Timeline

Change 815896 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Prettify coordinate formatting in generated GeoJSON

https://gerrit.wikimedia.org/r/815896

Test wiki created on Patch demo by Christoph Jauera (WMDE) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/9e58d1213f/w

Change 815896 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Prettify coordinate formatting in generated GeoJSON

https://gerrit.wikimedia.org/r/815896

Test wiki on Patch demo by Christoph Jauera (WMDE) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/9e58d1213f/w/