diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-13T19·10-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-13T19·10-0400 |
commit | 767101824af1fe41b6e50791b21112c6a8d7457f (patch) | |
tree | 3e0c53a6512eead8a697c4cbb7972474cc65d80f /src/libexpr/parser.y | |
parent | e5c589d271c62f57cd2e7eb7d9841f67d8845ff4 (diff) |
Avoid concatenating lists of one string
Diffstat (limited to '')
-rw-r--r-- | src/libexpr/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 095e288430f6..1819da5e1caa 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -203,7 +203,7 @@ static Expr * stripIndentation(SymbolTable & symbols, vector<Expr *> & es) es2->push_back(new ExprString(symbols.create(s2))); } - return new ExprConcatStrings(es2); + return es2->size() == 1 ? (*es2)[0] : new ExprConcatStrings(es2); } |