diff options
| author | 2017-12-13 00:39:58 +0100 | |
|---|---|---|
| committer | 2017-12-13 00:39:58 +0100 | |
| commit | f7765656a88fb262731ef96f152a2391433a81ce (patch) | |
| tree | 60fe2566e02eb961dbe2373992ab69a1aa59b077 /cli | |
| parent | 6fe196cdf156e71c07e1908c2b6ebc5fe0e5faa6 (diff) | |
| download | OneRoll-f7765656a88fb262731ef96f152a2391433a81ce.tar.gz OneRoll-f7765656a88fb262731ef96f152a2391433a81ce.zip | |
-Add comment at the right place
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.cpp | 4 |
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"; } |