TwP / inifile

Native Ruby package for reading and writing INI files
http://codeforpeople.rubyforge.org/inifile
95 stars 47 forks source link

Why do I get this error? Because of no HEREDOC support or something else? #53

Open Nakilon opened 4 years ago

Nakilon commented 4 years ago

Example portion of the input file from Perl utility:

[0]

; cse_abstract properties
section_name = actor
name = single_player
position = -251.26628112793, -19.6408023834229, -127.977920532227
direction = 0.00431653670966625, -1.39625442028046, -0.00068671052576974
s_flags = 0x29
version = 118
script_version = 7
spawn_id = 63

; cse_alife_object properties
game_vertex_id = 5
distance = 2.0999999
level_vertex_id = 8427
object_flags = 0xffffffbf
custom_data = <<END
[dont_spawn_character_supplies]

[spawn]
wpn_binoc
detector_simple
novice_outfit
device_torch
END

Getting IniFile::Error: Could not parse line: "wpn_binoc"

https://metacpan.org/pod/Config::IniFiles

dvarrui commented 1 year ago

This example show that paraíso without value are not allowed.

https://github.com/TwP/inifile/blob/master/test/data/bad_1.ini