geographika / mappyfile

A pure Python MapFile parser for working with MapServer
MIT License
71 stars 20 forks source link

Additional Comments added #168

Closed geographika closed 1 year ago

geographika commented 2 years ago

When using the "keep comments" feature, the following case will keep adding a new # PROJECTION comment on each change:

MAP
    PROJECTION
        "init=epsg:2157"
    END # PROJECTION
    LAYER
        TYPE LINE
    END
END # MAP

Output:

MAP
    PROJECTION
        "init=epsg:2157"
    END # PROJECTION
    # PROJECTION
    # PROJECTION
    LAYER
        TYPE LINE
    END # LAYER
END # MAP
geographika commented 1 year ago

Fixed with #191