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,10 +825,14 @@ Bindings::save_all_bindings_as_html (ostream& ostr)
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()) {
ostr << *p << " ( " << *l << " ) " << "</br>" << endl;
ostr << print_path << " ( " << *l << " ) " << "</br>" << endl;
} else {
ostr << *p << " ( " << *l << " ) " << " => " << *k << "</br>" << endl;
ostr << print_path << " ( " << *l << " ) " << " => " << *k << "</br>" << endl;
}
}
}