MartinPacker / filterCSV

Tools to manipulate CSV files in a format suitable for importing into various mindmapping programs - such as iThoughts, Freemind, and MindNode.
MIT License
32 stars 8 forks source link

promote mis-sequences the items at the high level #52

Closed MartinPacker closed 4 years ago

MartinPacker commented 4 years ago

e.g.

filterCSV < tests/test1.csv promote 1

gives

"colour","note","position","shape","level","level0","level1","level2"
"","","","square","0","X"
"","","","","0","A1"
"","","","","0","A2"
"","","","","1","","A2A"
"","","","","2","","","A2A1"

when it should give

"colour","note","position","shape","level","level0","level1","level2"
"","","","","0","A1"
"","","","","0","A2"
"","","","","1","","A2A"
"","","","","2","","","A2A1"
"","","","square","0","X"

Using dump confirms this mis-insertion.

MartinPacker commented 4 years ago

The issue is that A1 etc got inserted after X - when it should've been before.

MartinPacker commented 4 years ago

Fixed with asbullet.