File tree 3 files changed +21
-5
lines changed
3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def help(ous):
35
35
ous .write ("Z3 Options\n " )
36
36
z3_exe = BUILD_DIR + "/z3"
37
37
out = subprocess .Popen ([z3_exe , "-pm" ],stdout = subprocess .PIPE ).communicate ()[0 ]
38
- modules = []
38
+ modules = ["global" ]
39
39
if out != None :
40
40
out = out .decode (sys .stdout .encoding )
41
41
module_re = re .compile (r"\[module\] (.*)\," )
Original file line number Diff line number Diff line change @@ -536,15 +536,21 @@ struct gparams::imp {
536
536
void display_module_markdown (std::ostream & out, char const * module_name) {
537
537
lock_guard lock (*gparams_mux);
538
538
param_descrs * d = nullptr ;
539
+
540
+ if (module_name == std::string (" global" )) {
541
+ out << " \n ## Global Parameters\n\n " ;
542
+ get_param_descrs ().display_markdown (out);
543
+ return ;
544
+ }
539
545
if (!get_module_param_descr (module_name, d)) {
540
546
std::stringstream strm;
541
547
strm << " unknown module '" << module_name << " '" ;
542
548
throw exception (std::move (strm).str ());
543
549
}
544
- out << " \n ## Module " << module_name << " \n\n " ;
550
+ out << " \n ## " << module_name << " \n\n " ;
545
551
char const * descr = nullptr ;
546
552
if (get_module_descrs ().find (module_name, descr))
547
- out << " Description: " << descr << " \n " ;
553
+ out << descr << " \n " ;
548
554
out << " \n " ;
549
555
d->display_markdown (out);
550
556
}
Original file line number Diff line number Diff line change @@ -194,9 +194,19 @@ struct param_descrs::imp {
194
194
out << " | " << d.m_kind << " " ;
195
195
else
196
196
out << " (" << d.m_kind << " )" ;
197
- if (markdown)
197
+ if (markdown) {
198
198
out << " | " ;
199
- if (include_descr)
199
+ std::string desc;
200
+ for (auto ch : std::string (d.m_descr )) {
201
+ switch (ch) {
202
+ case ' <' : desc += " <" ; break ;
203
+ case ' >' : desc += " >" ; break ;
204
+ default : desc.push_back (ch);
205
+ }
206
+ }
207
+ out << " " << desc;
208
+ }
209
+ else if (include_descr)
200
210
out << " " << d.m_descr ;
201
211
if (markdown) {
202
212
out << " | " ;
You can’t perform that action at this time.
0 commit comments