Skip to content

Commit

Permalink
Always set Compiled file for HTML help compiler
Browse files Browse the repository at this point in the history
For the HTML help compiler `chmcmd` of the Free Pascal Compiler project the setting of `Compiled file` in the `index.hhp` file is mandatory, so when `CHM_FILE` is not specified the default name should be used.
  • Loading branch information
albert-github committed Mar 30, 2024
1 parent cc81338 commit 26a4ed1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/htmlhelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ void HtmlHelp::Private::createProjectFile()
{
t << "Compiled file=" << Config_getString(CHM_FILE) << "\n";
}
else
{
t << "Compiled file=index.chm\n";
}
t << "Compatibility=1.1\n"
"Full-text search=Yes\n";
if (ctsItemPresent) t << "Contents file=" + hhcFileName + "\n";
Expand Down

0 comments on commit 26a4ed1

Please sign in to comment.