daem-on / wtherion

A web-based Therion map editor
https://daem-on.github.io/wtherion/
MIT License
17 stars 2 forks source link

WTherion does not leave blank line between entities #10

Closed CaverBruce closed 2 years ago

CaverBruce commented 2 years ago

Not sure if this is a problem or not, perhaps just an observation.

XTherion writes th2 files with a blank line between each entity.

scrap 3-HawkesPlan-s2 -projection plan -station-names []@3 -author 2022.05.07 "B Mutton" -copyright 2022 NZSS -scale [0 0 787.4 787.4 0 0 10 10 m]

point 1236.0 9226.0 gradient -orientation 222.1 -scale xs

point 1098.0 9222.0 gradient -orientation 138.0 -scale xs

point 1468.0 8814.0 water-flow -orientation 64.6 -scale xs

point 1323.0 8935.0 bedrock -orientation 340.0 -clip off

point 1643.0 8953.0 gradient -orientation 295.3 -scale xs

point 1354.0 9022.0 gradient -orientation 80.9 -scale xs

line pit
  1223.3442519699993 9018.437086614
  1220.0 9013.0 1266.0 9061.0 1265.0 9092.0
  smooth off
  1247.0 9134.25 1164.0 9150.0 1135.0 9115.0
  smooth off
endline

line wall -reverse on
  1716.0 8763.0

WTherion writes th2 files without black lines.

scrap 3-HawkesPlan-s2 -scale [0 0 787.4 787.4 0 0 10 10 m] -projection "plan" -author "2022.05.07" -copyright "2022" undefined -station-names []@3
    point 1236 9226 gradient -scale xs -orientation 222.1
    point 1098 9222 gradient -scale xs -orientation 138
    point 1468 8814 water-flow -scale xs -orientation 64.6
    point 1323 8935 bedrock -clip off -orientation 340
    point 1643 8953 gradient -scale xs -orientation 295.3
    point 1354 9022 gradient -scale xs -orientation 80.9
    line pit
        1223.34 9018.44
        1220 9013 1266 9061 1265 9092
        smooth off
        1247 9134.25 1164 9150 1135 9115
        smooth off
    endline
    line wall -reverse on
        1716 8763
daem-on commented 2 years ago

First of all, thank you for submitting so many issues, these are very helpful. Regarding this one: Unless an importer actually breaks because there aren't empty lines in the file, this is absolutely not something I would change, it's literally adding redundant data into the data file. If somebody wants that, there are ways you can increase the line spacing without adding unnecessary empty lines everywhere.