Update src/marisa.cpp
This commit is contained in:
parent
862079fb3e
commit
224355f13d
|
@ -221,7 +221,7 @@ void lookup_words(marisa_params params)
|
|||
pos_in_gd_word -= static_cast<std::ptrdiff_t>(uni_char.length());
|
||||
}
|
||||
|
||||
ajt::println(
|
||||
ajt::print(
|
||||
R"(<a class="{}" href="bword:{}">{}</a>)",
|
||||
(pos_in_gd_word > 0 ? "gd-headword" : "gd-word"),
|
||||
bword,
|
||||
|
@ -231,9 +231,9 @@ void lookup_words(marisa_params params)
|
|||
}
|
||||
|
||||
// Show available entries for other substrings.
|
||||
ajt::println(R"(<div class="alternatives">)");
|
||||
ajt::print(R"(<div class="alternatives">)");
|
||||
for (auto const& group: alternatives | std::views::filter(&JpSet::size)) {
|
||||
ajt::println("<ul>");
|
||||
ajt::print("<ul>");
|
||||
for (auto const& word: group) {
|
||||
ajt::println(
|
||||
R"(<li><a class="{}" href="bword:{}">{}</a></li>)",
|
||||
|
|
Loading…
Reference in a new issue