From f7765656a88fb262731ef96f152a2391433a81ce Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 13 Dec 2017 00:39:58 +0100 Subject: -Add comment at the right place --- cli/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/main.cpp b/cli/main.cpp index 07a363b..0185aa6 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -286,6 +286,10 @@ void startDiceParsingMarkdown(QString cmd) stringResult.replace("%2",listText.trimmed()); str = stringResult; } + if(!parser.getComment().isEmpty()) + { + str.prepend(parser.getComment()+ QStringLiteral("\n")); + } result += str + "\n"; } -- cgit v1.2.3-70-g09d2