13
0

strip <Actions>/ from displayed path when printing bindings to HTML

This commit is contained in:
Paul Davis 2017-08-18 09:41:45 -04:00
parent 91dcccb12b
commit f84bebbb30

View File

@ -825,17 +825,21 @@ Bindings::save_all_bindings_as_html (ostream& ostr)
for (p = paths.begin(), k = keys.begin(), l = labels.begin(); p != paths.end(); ++k, ++p, ++l) { for (p = paths.begin(), k = keys.begin(), l = labels.begin(); p != paths.end(); ++k, ++p, ++l) {
string print_path = *p;
/* strip <Actions>/ from the start */
print_path = print_path.substr (10);
if ((*k).empty()) { if ((*k).empty()) {
ostr << *p << " ( " << *l << " ) " << "</br>" << endl; ostr << print_path << " ( " << *l << " ) " << "</br>" << endl;
} else { } else {
ostr << *p << " ( " << *l << " ) " << " => " << *k << "</br>" << endl; ostr << print_path << " ( " << *l << " ) " << " => " << *k << "</br>" << endl;
} }
} }
} }
ostr << "</td>\n\n"; ostr << "</td>\n\n";
ostr << "</tr>\n\n"; ostr << "</tr>\n\n";
ostr << "</tbody></table>\n\n"; ostr << "</tbody></table>\n\n";
ostr << "</body>\n"; ostr << "</body>\n";
ostr << "</html>\n"; ostr << "</html>\n";
} }