mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 01:39:30 +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;
|
||||
SetString(FDocType.FName, FName.Buffer, FName.Length);
|
||||
DTDName := FNameTable.FindOrAdd(FName.Buffer, FName.Length);
|
||||
SkipS(True);
|
||||
StoreLocation(Locs[0]);
|
||||
HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False);
|
||||
if HasAtts then
|
||||
Locs[2] := FTokenStart;
|
||||
SkipS;
|
||||
|
||||
if SkipS then
|
||||
begin
|
||||
StoreLocation(Locs[0]);
|
||||
HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False);
|
||||
if HasAtts then
|
||||
Locs[2] := FTokenStart;
|
||||
SkipS;
|
||||
end;
|
||||
|
||||
if CheckForChar('[') then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user