mirror of
https://github.com/boostorg/boost.git
synced 2025-04-17 02:34:53 +00:00
Remove libs/library-name from GitHub subproject URL.
This commit is contained in:
parent
a9a9a303c8
commit
a7b8297a8a
1 changed files with 5 additions and 1 deletions
|
@ -177,10 +177,14 @@ void insert_test_line(html_writer& document,
|
|||
// This is guaranteed to exist because of the way the nested maps are created
|
||||
const test_structure_t::test_log_t * first_log = (*test_results.second.begin()).second.front();
|
||||
std::string test_program(first_log->test_program);
|
||||
|
||||
std::string::size_type pos = test_program.find(library);
|
||||
if (pos != std::string::npos)
|
||||
test_program.erase(0, pos + library.size());
|
||||
|
||||
std::string test_header =
|
||||
"<td class=\"test-name\">\n"
|
||||
" <a href=\"https://github.com/boostorg/" + library + "/blob/" + source + "/" + escape_uri(test_program) + "\" class=\"test-link\" target=\"_top\">\n"
|
||||
" <a href=\"https://github.com/boostorg/" + library + "/blob/" + source + escape_uri(test_program) + "\" class=\"test-link\" target=\"_top\">\n"
|
||||
" " + escape_xml(test_results.first.second) + "\n" // FIXME: sanitize test name
|
||||
" </a>\n"
|
||||
"</td>\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue