Remove whitespace from id links, fix <br> closing

This commit is contained in:
2024-12-23 10:43:58 +01:00
parent 79d69f4b65
commit d1358f7e77
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni

Vedi File

@ -60,7 +60,7 @@ std::string HandlerPageView::createIndexContent(IParser &parser, std::string con
}
previous = h.level;
HtmlLink link;
link.href = "#" + h.title;
link.href = "#" + utils::strreplace(h.title, " ", "");
link.innervalue = h.title;
link.cssclass = "indexlink";
indexcontent += "<li>" + link.render() + "</li>";