aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/main.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-12-13 00:39:58 +0100
committerRenaud G <renaud@rolisteam.org>2017-12-13 00:39:58 +0100
commitf7765656a88fb262731ef96f152a2391433a81ce (patch)
tree60fe2566e02eb961dbe2373992ab69a1aa59b077 /cli/main.cpp
parent6fe196cdf156e71c07e1908c2b6ebc5fe0e5faa6 (diff)
downloadOneRoll-f7765656a88fb262731ef96f152a2391433a81ce.tar.gz
OneRoll-f7765656a88fb262731ef96f152a2391433a81ce.zip
-Add comment at the right place
Diffstat (limited to 'cli/main.cpp')
-rw-r--r--cli/main.cpp4
1 files changed, 4 insertions, 0 deletions
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";
}