mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-25 15:29:36 +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;
|
if not FInsideTextNode then wrtIndent;
|
||||||
wrtStr('<?');
|
wrtStr('<?');
|
||||||
wrtStr(TDOMProcessingInstruction(node).Target);
|
wrtStr(TDOMProcessingInstruction(node).Target);
|
||||||
wrtChr(' ');
|
if TDOMProcessingInstruction(node).Data <> '' then
|
||||||
wrtStr(TDOMProcessingInstruction(node).Data);
|
begin
|
||||||
|
wrtChr(' ');
|
||||||
|
wrtStr(TDOMProcessingInstruction(node).Data);
|
||||||
|
end;
|
||||||
wrtStr('?>');
|
wrtStr('?>');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user