Changed variable to prevent shadowing.
This commit is contained in:
parent
636509fa2d
commit
8cd33bb083
|
@ -142,14 +142,14 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
|
||||||
for (const Database::entry &entry : tag.second)
|
for (const Database::entry &entry : tag.second)
|
||||||
{
|
{
|
||||||
const string datetime = timepoint_to_string(entry.datetime);
|
const string datetime = timepoint_to_string(entry.datetime);
|
||||||
const string day = datetime.substr(0, datetime.find('T'));
|
const string date = datetime.substr(0, datetime.find('T'));
|
||||||
string title = entry.title;
|
string title = entry.title;
|
||||||
if (title.empty())
|
if (title.empty())
|
||||||
{
|
{
|
||||||
title = "++" + entry.uri + "++";
|
title = "++" + entry.uri + "++";
|
||||||
}
|
}
|
||||||
out << endl << "* xref:dt_" << datetime
|
out << endl << "* xref:dt_" << datetime
|
||||||
<< '[' << title << "] _(" << day << ")_" << endl;
|
<< '[' << title << "] _(" << date << ")_" << endl;
|
||||||
}
|
}
|
||||||
out << endl;
|
out << endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue