diff options
| -rw-r--r-- | generator/generator.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
| diff --git a/generator/generator.cpp b/generator/generator.cpp index 16183a2..3dd2ce7 100644 --- a/generator/generator.cpp +++ b/generator/generator.cpp | |||
| @@ -1367,8 +1367,17 @@ namespace verbly { | |||
| 1367 | key = xmlGetProp(syntaxnode, reinterpret_cast<const xmlChar*>("value")); | 1367 | key = xmlGetProp(syntaxnode, reinterpret_cast<const xmlChar*>("value")); |
| 1368 | std::string choicesStr = reinterpret_cast<const char*>(key); | 1368 | std::string choicesStr = reinterpret_cast<const char*>(key); |
| 1369 | xmlFree(key); | 1369 | xmlFree(key); |
| 1370 | 1370 | ||
| 1371 | split(choicesStr, " ", std::inserter(partChoices, std::end(partChoices))); | 1371 | for (std::string choice : split<std::list<std::string>>(choicesStr, " ")) |
| 1372 | { | ||
| 1373 | int chloc; | ||
| 1374 | while ((chloc = choice.find_first_of("_")) != std::string::npos) | ||
| 1375 | { | ||
| 1376 | choice.replace(chloc, 1, " "); | ||
| 1377 | } | ||
| 1378 | |||
| 1379 | partChoices.insert(std::move(choice)); | ||
| 1380 | } | ||
| 1372 | } else { | 1381 | } else { |
| 1373 | partLiteral = false; | 1382 | partLiteral = false; |
| 1374 | 1383 | ||
