mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: XMLConfig - preserve white space
(cherry picked from commit fe39bff758)
This commit is contained in:
parent
26406eaf5f
commit
b1a12d5bd3
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,7 @@ begin
|
|||
try
|
||||
if FileStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename));
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename), [xrfPreserveWhiteSpace]);
|
||||
if TmpDoc.DocumentElement.NodeName <> ApplicationName then
|
||||
raise EXMLReadError.Create('Root element is not <' + ApplicationName + '>.');
|
||||
FDoc.Free;
|
||||
|
|
@ -541,7 +541,7 @@ var
|
|||
begin
|
||||
if AStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, AStream);
|
||||
ReadXMLFile(TmpDoc, AStream, [xrfPreserveWhiteSpace]);
|
||||
FDoc.Free;
|
||||
FDoc := TmpDoc;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue