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:
parent
f6e4a45f4b
commit
0eea021dc3
3 changed files with 21 additions and 5 deletions
|
@ -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 += "<"; break;
|
||||
case '>': desc += ">"; break;
|
||||
default: desc.push_back(ch);
|
||||
}
|
||||
}
|
||||
out << " " << desc;
|
||||
}
|
||||
else if (include_descr)
|
||||
out << " " << d.m_descr;
|
||||
if (markdown) {
|
||||
out << " | ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue