mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:29:33 +02:00
* Fix bug ID #35731 (ReadSectionRaw needs to read comments)
git-svn-id: trunk@42247 -
This commit is contained in:
parent
d6174499b1
commit
db2c9183f1
@ -33,8 +33,13 @@ begin
|
|||||||
for i:=0 to lines.Count-1 do
|
for i:=0 to lines.Count-1 do
|
||||||
WriteLn(' ', lines[i]);
|
WriteLn(' ', lines[i]);
|
||||||
lines.Clear();
|
lines.Clear();
|
||||||
ini.ReadSectionValues('main', lines,[svoIncludeComments]);
|
ini.ReadSectionValues('main', lines,[]);
|
||||||
WriteLn('ReadSectionValues (with comments, no invalid):');
|
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
|
for i:=0 to lines.Count-1 do
|
||||||
WriteLn(' ', lines[i]);
|
WriteLn(' ', lines[i]);
|
||||||
lines.Clear();
|
lines.Clear();
|
||||||
|
@ -1190,7 +1190,6 @@ begin
|
|||||||
oSection := FSectionList.SectionByName(Section,CaseSensitive);
|
oSection := FSectionList.SectionByName(Section,CaseSensitive);
|
||||||
if oSection <> nil then with oSection.KeyList do
|
if oSection <> nil then with oSection.KeyList do
|
||||||
for i := 0 to Count-1 do
|
for i := 0 to Count-1 do
|
||||||
if not IsComment(Items[i].Ident) then
|
|
||||||
begin
|
begin
|
||||||
if Items[i].Ident<>'' then
|
if Items[i].Ident<>'' then
|
||||||
Strings.Add(Items[i].Ident + Separator +Items[i].Value)
|
Strings.Add(Items[i].Ident + Separator +Items[i].Value)
|
||||||
|
Loading…
Reference in New Issue
Block a user