Fixed tag list in AsciiDoc-export if entry has no title.
This commit is contained in:
parent
ae4ad04a87
commit
50f2007291
|
@ -147,9 +147,14 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
|
||||||
<< tag.first << endl;
|
<< tag.first << endl;
|
||||||
for (const Database::entry &entry : tag.second)
|
for (const Database::entry &entry : tag.second)
|
||||||
{
|
{
|
||||||
|
string title = entry.title;
|
||||||
|
if (title.empty())
|
||||||
|
{
|
||||||
|
title = "++" + entry.uri + "++";
|
||||||
|
}
|
||||||
out << endl << "* xref:dt_"
|
out << endl << "* xref:dt_"
|
||||||
<< timepoint_to_string(entry.datetime)
|
<< timepoint_to_string(entry.datetime)
|
||||||
<< '[' << entry.title << ']' << endl;
|
<< '[' << title << ']' << endl;
|
||||||
}
|
}
|
||||||
out << endl;
|
out << endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue