Fixed AsciiDoc export.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
It was not formatted correctly if descriptions were missing.
This commit is contained in:
parent
c98f02153f
commit
f57f2bf578
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.2)
|
||||
project(remwharead
|
||||
VERSION 0.1.2
|
||||
VERSION 0.1.3
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -70,7 +70,6 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
|
|||
{
|
||||
out << " (link:" << entry.archive_uri << "[archived version])";
|
||||
}
|
||||
out << endl;
|
||||
|
||||
bool separator = false;
|
||||
for (const string &tag : entry.tags)
|
||||
|
@ -81,7 +80,7 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
|
|||
}
|
||||
if (!separator)
|
||||
{
|
||||
out << "| ";
|
||||
out << "\n| ";
|
||||
separator = true;
|
||||
}
|
||||
|
||||
|
@ -101,11 +100,11 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
|
|||
out << ", ";
|
||||
}
|
||||
}
|
||||
out << endl;
|
||||
out << endl << endl;
|
||||
|
||||
if (!entry.description.empty())
|
||||
{
|
||||
out << endl << entry.description << endl << endl;
|
||||
out << entry.description << endl << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user