Page MenuHomePhabricator

Polygons added in VE create 4 lines of code for each node of the polygon
Open, Needs TriagePublic


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

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