* Fix bug ID #35731 (ReadSectionRaw needs to read comments)

git-svn-id: trunk@42247 -
This commit is contained in:
michael 2019-06-19 06:12:15 +00:00
parent d6174499b1
commit db2c9183f1
2 changed files with 7 additions and 3 deletions

View File

@ -33,8 +33,13 @@ begin
for i:=0 to lines.Count-1 do
WriteLn(' ', lines[i]);
lines.Clear();
ini.ReadSectionValues('main', lines,[svoIncludeComments]);
WriteLn('ReadSectionValues (with comments, no invalid):');
ini.ReadSectionValues('main', lines,[]);
WriteLn('ReadSectionValues (no options):');
for i:=0 to lines.Count-1 do
WriteLn(' ', lines[i]);
lines.Clear();
ini.ReadSectionRaw('main', lines);
WriteLn('ReadSectionRaw (with comments, no invalid):');
for i:=0 to lines.Count-1 do
WriteLn(' ', lines[i]);
lines.Clear();

View File

@ -1190,7 +1190,6 @@ begin
oSection := FSectionList.SectionByName(Section,CaseSensitive);
if oSection <> nil then with oSection.KeyList do
for i := 0 to Count-1 do
if not IsComment(Items[i].Ident) then
begin
if Items[i].Ident<>'' then
Strings.Add(Items[i].Ident + Separator +Items[i].Value)