pdxiv / sk2sadat

Convert ScottKit to Scott Adams DAT format
GNU General Public License v2.0
1 stars 1 forks source link

item noun in quotes produces corrupt data file #12

Closed pdxiv closed 3 years ago

pdxiv commented 3 years ago

There is a bug related to declaration of item nouns.

It appears when the noun is in quotes, as with "lamp" in the below example.

item lit_lamp "lit lamp"
    called "lamp" nowhere

It produces a rogue extra quote character in the item declaration in the data file as follows:

"lit lamp/"LA/" 0

Until this is fixed, this bug can be avoided by simply not using quotes around the noun term as follows instead:

item lit_lamp "lit lamp"
    called lamp nowhere

...and this will produce the correct output in the data file:

"lit lamp/LAM/" 0