Cosmetic changes.

This commit is contained in:
tastytea 2019-05-16 12:53:32 +02:00
parent 81f7feb044
commit e65fb77722
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 2 deletions

View File

@ -35,8 +35,8 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
{ {
out << "= Visited things\n" out << "= Visited things\n"
<< ":Author: remwharead " << global::version << endl << ":Author: remwharead " << global::version << endl
<< ":Date: " << timepoint_to_string(system_clock::now()) << endl << ":Date: " << timepoint_to_string(system_clock::now()) << endl
<< ":toc: right" << endl << ":toc: right" << endl
// << ":toc-title:" << endl // << ":toc-title:" << endl
<< endl; << endl;
@ -52,6 +52,7 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
day = newday; day = newday;
out << "== " << day << endl << endl; out << "== " << day << endl << endl;
} }
out << "[[dt" << datetime << "]]\n"; out << "[[dt" << datetime << "]]\n";
out << ".link:" << entry.uri; out << ".link:" << entry.uri;
if (!entry.title.empty()) if (!entry.title.empty())
@ -63,6 +64,7 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
out << "[]"; out << "[]";
} }
out << endl; out << endl;
out << '_' << time << '_'; out << '_' << time << '_';
for (const string &tag : entry.tags) for (const string &tag : entry.tags)
{ {
@ -93,6 +95,7 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
out << " (" << entry.archive_uri << "[archived version])\n"; out << " (" << entry.archive_uri << "[archived version])\n";
} }
out << endl; out << endl;
if (!entry.description.empty()) if (!entry.description.empty())
{ {
out << entry.description << endl << endl; out << entry.description << endl << endl;