Skip to content

Commit

Permalink
fix for #221
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Allen committed May 12, 2024
1 parent 1b5d76d commit 567fd3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MainUtils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,12 @@ function TDocumentConverter.Execute: string;
loginfo('Output Extension is ' + outputExt, CHATTY);
end;

OutputFile := OutputFile + ChangeFileExt( ExtractFileName(InputFile),OutputExt);
if InputIsFile then
begin
OutputFile := OutputFile + ChangeFileExt( ExtractFileName(InputFile),OutputExt);
end;


end;

// Add file to InputFiles List if only one.
Expand Down

0 comments on commit 567fd3a

Please sign in to comment.