Skip to content

Commit

Permalink
Provide fix for 221 - incorrect directory name (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: Toby Allen <toby@cookingisfun.ie>
  • Loading branch information
tobya and Toby Allen committed May 12, 2024
1 parent c2dd06e commit cf65535
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 cf65535

Please sign in to comment.