herbix / hoi4modutilities

A VSCode extension that contains utilities for Heart of Iron IV mods developers
MIT License
74 stars 9 forks source link

[BUG] Rail visualiser doesn't work if the lines are tabbed in #49

Closed Hola-Man closed 1 year ago

Hola-Man commented 2 years ago

Describe the bug The world map previewer doesn't strip leading tabs/spaces

To Reproduce Steps to reproduce the behavior:

  1. Tab in a line in the railway file
  2. open the world map previewer
  3. See error

Expected behavior The program should strip the tabs before reading the rail lines, and yet it does not many of these rails are going to provinces with ids that are actually used in the file to represent length - province 9 is the very popular one off of south america

Screenshots gunknown

Desktop (please complete the following information):

herbix commented 2 years ago

I didn't find a document that says prefixing tabs is supported. Can you please provide one?

herbix commented 1 year ago

Fixed in https://github.com/herbix/hoi4modutilities/commit/31efcd6d928a08e032c30dca32e76be1e087664b.