mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +02:00
* fcl-xml: Fixed parsing DTD, whitespace after name is mandatory only if followed by ExternalID. Mantis #29569.
git-svn-id: trunk@33040 -
This commit is contained in:
parent
2e64c63993
commit
9b25ce2007
@ -1911,12 +1911,15 @@ begin
|
|||||||
CheckName;
|
CheckName;
|
||||||
SetString(FDocType.FName, FName.Buffer, FName.Length);
|
SetString(FDocType.FName, FName.Buffer, FName.Length);
|
||||||
DTDName := FNameTable.FindOrAdd(FName.Buffer, FName.Length);
|
DTDName := FNameTable.FindOrAdd(FName.Buffer, FName.Length);
|
||||||
SkipS(True);
|
|
||||||
StoreLocation(Locs[0]);
|
if SkipS then
|
||||||
HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False);
|
begin
|
||||||
if HasAtts then
|
StoreLocation(Locs[0]);
|
||||||
Locs[2] := FTokenStart;
|
HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False);
|
||||||
SkipS;
|
if HasAtts then
|
||||||
|
Locs[2] := FTokenStart;
|
||||||
|
SkipS;
|
||||||
|
end;
|
||||||
|
|
||||||
if CheckForChar('[') then
|
if CheckForChar('[') then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user