Fixed AsciiDoc export.
continuous-integration/drone/push Build is passing Details

It was not formatted correctly if descriptions were missing.
This commit is contained in:
tastytea 2019-05-18 03:03:37 +02:00
parent c98f02153f
commit f57f2bf578
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(remwharead
VERSION 0.1.2
VERSION 0.1.3
LANGUAGES CXX
)

View File

@ -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;
}
}