forked from lwg/issues
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global variable for docno of current standard reference
Also remove extra <p> around build timestamps.
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,13 @@ auto utc_timestamp() -> std::tm const & { | |
} | ||
|
||
// global data - would like to do something about that. | ||
static std::string const build_timestamp{format_time("<p>Revised %Y-%m-%d at %H:%M:%S UTC</p>\n", utc_timestamp())}; | ||
static std::string const build_timestamp{format_time("Revised %Y-%m-%d at %H:%M:%S UTC\n", utc_timestamp())}; | ||
|
||
static std::string const maintainer_email{"[email protected]"}; | ||
|
||
static std::string const maintainer_name{"Jonathan Wakely"}; | ||
|
||
static std::string const is14882_docno{"ISO/IEC IS 14882:2020(E)"}; | ||
|
||
struct order_by_first_tag { | ||
bool operator()(lwg::issue const & x, lwg::issue const & y) const noexcept { | ||
|
@@ -650,7 +651,7 @@ void report_generator::make_sort_by_num(std::vector<issue>& issues, fs::path con | |
out << | ||
R"(<h1>C++ Standard Library Issues List (Revision )" << lwg_issues_xml.get_revision() << R"()</h1> | ||
<h1>Table of Contents</h1> | ||
<p>Reference ISO/IEC IS 14882:2020(E)</p> | ||
<p>Reference )" << is14882_docno << R"(</p> | ||
<p>This document is the Table of Contents for the <a href="lwg-active.html">Library Active Issues List</a>, | ||
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.</p> | ||
)"; | ||
|
@@ -672,7 +673,7 @@ void report_generator::make_sort_by_priority(std::vector<issue>& issues, fs::pat | |
out << | ||
R"(<h1>C++ Standard Library Issues List (Revision )" << lwg_issues_xml.get_revision() << R"()</h1> | ||
<h1>Table of Contents</h1> | ||
<p>Reference ISO/IEC IS 14882:2020(E)</p> | ||
<p>Reference )" << is14882_docno << R"(</p> | ||
<p>This document is the Table of Contents for the <a href="lwg-active.html">Library Active Issues List</a>, | ||
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.</p> | ||
)"; | ||
|
@@ -713,7 +714,7 @@ void report_generator::make_sort_by_status(std::vector<issue>& issues, fs::path | |
out << | ||
R"(<h1>C++ Standard Library Issues List (Revision )" << lwg_issues_xml.get_revision() << R"()</h1> | ||
<h1>Index by Status and Section</h1> | ||
<p>Reference ISO/IEC IS 14882:2020(E)</p> | ||
<p>Reference )" << is14882_docno << R"(</p> | ||
<p> | ||
This document is the Index by Status and Section for the <a href="lwg-active.html">Library Active Issues List</a>, | ||
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>. | ||
|
@@ -748,7 +749,7 @@ void report_generator::make_sort_by_status_mod_date(std::vector<issue> & issues, | |
out << | ||
R"(<h1>C++ Standard Library Issues List (Revision )" << lwg_issues_xml.get_revision() << R"()</h1> | ||
<h1>Index by Status and Date</h1> | ||
<p>Reference ISO/IEC IS 14882:2020(E)</p> | ||
<p>Reference )" << is14882_docno << R"(</p> | ||
<p> | ||
This document is the Index by Status and Date for the <a href="lwg-active.html">Library Active Issues List</a>, | ||
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>. | ||
|
@@ -793,7 +794,7 @@ void report_generator::make_sort_by_section(std::vector<issue>& issues, fs::path | |
|
||
out << "<h1>C++ Standard Library Issues List (Revision " << lwg_issues_xml.get_revision() << ")</h1>\n"; | ||
out << "<h1>Index by Section</h1>\n"; | ||
out << "<p>Reference ISO/IEC IS 14882:2020(E)</p>\n"; | ||
out << "<p>Reference " << is14882_docno << "</p>\n"; | ||
out << "<p>This document is the Index by Section for the <a href=\"lwg-active.html\">Library Active Issues List</a>"; | ||
if(!active_only) { | ||
out << ", <a href=\"lwg-defects.html\">Library Defect Reports and Accepted Issues</a>, and <a href=\"lwg-closed.html\">Library Closed Issues List</a>"; | ||
|