mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 09:30:21 +02:00
xmlwrite.pp: c14n compliance: write whitespace after PI name only if its data is not empty
git-svn-id: trunk@13856 -
This commit is contained in:
parent
43d3bacc78
commit
ea85a7ec11
@ -516,8 +516,11 @@ begin
|
||||
if not FInsideTextNode then wrtIndent;
|
||||
wrtStr('<?');
|
||||
wrtStr(TDOMProcessingInstruction(node).Target);
|
||||
wrtChr(' ');
|
||||
wrtStr(TDOMProcessingInstruction(node).Data);
|
||||
if TDOMProcessingInstruction(node).Data <> '' then
|
||||
begin
|
||||
wrtChr(' ');
|
||||
wrtStr(TDOMProcessingInstruction(node).Data);
|
||||
end;
|
||||
wrtStr('?>');
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user