Fixed tag list in AsciiDoc-export if entry has no title.

This commit is contained in:
tastytea 2019-05-21 15:26:20 +02:00
parent ae4ad04a87
commit 50f2007291
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 1 deletions

View File

@ -147,9 +147,14 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
<< tag.first << endl;
for (const Database::entry &entry : tag.second)
{
string title = entry.title;
if (title.empty())
{
title = "++" + entry.uri + "++";
}
out << endl << "* xref:dt_"
<< timepoint_to_string(entry.datetime)
<< '[' << entry.title << ']' << endl;
<< '[' << title << ']' << endl;
}
out << endl;
}