mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-02 04:22:35 +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;
|
||||
begin
|
||||
result:='.html';
|
||||
result:='';
|
||||
end;
|
||||
|
||||
// private methods
|
||||
|
@ -588,7 +588,9 @@ var
|
||||
begin
|
||||
PackageName := LowerCase(Copy(Package.Name, 2, 255));
|
||||
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);
|
||||
try
|
||||
WriteBeginDocument;
|
||||
|
Loading…
Reference in New Issue
Block a user