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:
sergei 2009-10-13 21:50:07 +00:00
parent 43d3bacc78
commit ea85a7ec11

View File

@ -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;