aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-12-08 21:29:27 +0100
committerRenaud G <renaud@rolisteam.org>2018-12-08 21:29:27 +0100
commit934387b1219ee16ab38d5a2a7e2f6e87f46b9900 (patch)
tree983125166a053c5443bdb4ba23f2ee522a3381dd /cli
parentbb47c33763d250cc424216a1dd0fedefa80532a3 (diff)
downloadOneRoll-934387b1219ee16ab38d5a2a7e2f6e87f46b9900.tar.gz
OneRoll-934387b1219ee16ab38d5a2a7e2f6e87f46b9900.zip
Fix compilation.
Diffstat (limited to 'cli')
-rw-r--r--cli/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/main.cpp b/cli/main.cpp
index 7cf2b7b..1324a3d 100644
--- a/cli/main.cpp
+++ b/cli/main.cpp
@@ -267,13 +267,10 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF
}
if(!list.isEmpty())
{
- qDebug() << "list is not empty" << list.size();
for(auto map : list)
{
- qDebug() << "loop map"<< map.size();
for(auto key : map.keys())
{
- qDebug() << "key: "<<key;
auto dice = map[key];
QString stringVal;
for(auto val : dice)
@@ -299,14 +296,13 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF
}
}
- qDebug() << listOfDiceResult;
if(parser.hasStringResult())
{
bool ok;
QStringList allStringlist = parser.getAllStringResult(ok);
QString stringResult = allStringlist.join(" ; ");
stringResult.replace("%1",scalarText);
- resultStr.replace("%2",diceList.trimmed());
+ stringResult.replace("%2",listOfDiceResult.join(",").trimmed());
stringResult.replace("%3",lastScalarText);
int i = strLst.size();
@@ -352,6 +348,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF
case SVG:
displaySVG(scalarText, resultStr, array, withColor, cmd, error, comment, allSameFaceCount, allSameColor);
break;
+ case BOT:
case MARKDOWN:
displayMarkdown(scalarText, resultStr, array, withColor, cmd, error, comment, allSameFaceCount, allSameColor);
break;