From 92f87fb85b909f329192d6d32d725e85f66b17d7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 23 May 2019 12:06:27 +0200 Subject: [PATCH] Changed AsciiDoc export. Each thing is now a list item. The structure makes more sense, looks better in text browsers. --- src/adoc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adoc.cpp b/src/adoc.cpp index f1392e6..d5a99ec 100644 --- a/src/adoc.cpp +++ b/src/adoc.cpp @@ -55,7 +55,7 @@ void export_adoc(const vector &entries, ostream &out) } out << "[[dt_" << datetime << "]]\n"; - out << ".link:" << entry.uri; + out << "* link:" << entry.uri; if (!entry.title.empty()) { out << '[' << entry.title << ']'; @@ -64,7 +64,7 @@ void export_adoc(const vector &entries, ostream &out) { out << "[]"; } - out << endl; + out << " +" << endl; out << '_' << time.substr(0, 5) << '_'; if (!entry.archive_uri.empty()) @@ -101,12 +101,12 @@ void export_adoc(const vector &entries, ostream &out) out << ", "; } } - out << endl << endl; if (!entry.description.empty()) { - out << entry.description << endl << endl; + out << " +" << endl << entry.description; } + out << endl << endl; } if (!alltags.empty())