mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 03:05:56 +02:00
* Actually use FileNameExtension
git-svn-id: trunk@20092 -
This commit is contained in:
parent
9788e2cad8
commit
776fe528d6
@ -3457,7 +3457,7 @@ end;
|
|||||||
|
|
||||||
Class Function THTMLWriter.FileNameExtension : String;
|
Class Function THTMLWriter.FileNameExtension : String;
|
||||||
begin
|
begin
|
||||||
result:='.html';
|
result:='';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// private methods
|
// private methods
|
||||||
|
@ -588,7 +588,9 @@ var
|
|||||||
begin
|
begin
|
||||||
PackageName := LowerCase(Copy(Package.Name, 2, 255));
|
PackageName := LowerCase(Copy(Package.Name, 2, 255));
|
||||||
If (Engine.OutPut='') then
|
If (Engine.OutPut='') then
|
||||||
Engine.Output:=PackageName+FileNameExtension;
|
Engine.Output:=PackageName+FileNameExtension
|
||||||
|
else if (ExtractFileExt(Engine.output)='') and (FileNameExtension<>'') then
|
||||||
|
Engine.Output:=ChangeFileExt(Engine.output,FileNameExtension);
|
||||||
FStream:=TFileStream.Create(Engine.Output,fmCreate);
|
FStream:=TFileStream.Create(Engine.Output,fmCreate);
|
||||||
try
|
try
|
||||||
WriteBeginDocument;
|
WriteBeginDocument;
|
||||||
|
Loading…
Reference in New Issue
Block a user