From e65fb77722307ea10a79c8ccfd34c407c3764dfb Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 16 May 2019 12:53:32 +0200 Subject: [PATCH] Cosmetic changes. --- src/adoc.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/adoc.cpp b/src/adoc.cpp index e5b7c6a..3b6e586 100644 --- a/src/adoc.cpp +++ b/src/adoc.cpp @@ -35,8 +35,8 @@ void export_adoc(const vector &entries, ostream &out) { out << "= Visited things\n" << ":Author: remwharead " << global::version << endl - << ":Date: " << timepoint_to_string(system_clock::now()) << endl - << ":toc: right" << endl + << ":Date: " << timepoint_to_string(system_clock::now()) << endl + << ":toc: right" << endl // << ":toc-title:" << endl << endl; @@ -52,6 +52,7 @@ void export_adoc(const vector &entries, ostream &out) day = newday; out << "== " << day << endl << endl; } + out << "[[dt" << datetime << "]]\n"; out << ".link:" << entry.uri; if (!entry.title.empty()) @@ -63,6 +64,7 @@ void export_adoc(const vector &entries, ostream &out) out << "[]"; } out << endl; + out << '_' << time << '_'; for (const string &tag : entry.tags) { @@ -93,6 +95,7 @@ void export_adoc(const vector &entries, ostream &out) out << " (" << entry.archive_uri << "[archived version])\n"; } out << endl; + if (!entry.description.empty()) { out << entry.description << endl << endl;