Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 3ba5845

Browse files
committed
Fix too few arguments to function safeAnchorId
1 parent 0afd55c commit 3ba5845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Doxybook/Renderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ Doxybook2::Renderer::Renderer(const Config& config,
9191
const auto arg = args.at(0)->get<std::string>();
9292
return Utils::escape(arg);
9393
});
94-
env->add_callback("safeAnchorId", 1, [](inja::Arguments& args) -> std::string {
94+
env->add_callback("safeAnchorId", 1, [&config](inja::Arguments& args) -> std::string {
9595
const auto arg = args.at(0)->get<std::string>();
96-
return Utils::safeAnchorId(arg);
96+
return Utils::safeAnchorId(arg, config.replaceUnderscoresInAnchors);
9797
});
9898
env->add_callback("title", 1, [](inja::Arguments& args) {
9999
const auto arg = args.at(0)->get<std::string>();

0 commit comments

Comments
 (0)