3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-08 15:13:23 +00:00

include global parameters and fixup for HTML meta-characters

This commit is contained in:
Nikolaj Bjorner 2022-08-22 14:25:08 -07:00
parent f6e4a45f4b
commit 0eea021dc3
3 changed files with 21 additions and 5 deletions

View file

@ -194,9 +194,19 @@ struct param_descrs::imp {
out << " | " << d.m_kind << " ";
else
out << " (" << d.m_kind << ")";
if (markdown)
if (markdown) {
out << " | ";
if (include_descr)
std::string desc;
for (auto ch : std::string(d.m_descr)) {
switch (ch) {
case '<': desc += "&lt;"; break;
case '>': desc += "&gt;"; break;
default: desc.push_back(ch);
}
}
out << " " << desc;
}
else if (include_descr)
out << " " << d.m_descr;
if (markdown) {
out << " | ";