From ee773edacfeba650931c604e266cf0862dbc2bfe Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 26 Feb 2017 18:15:22 +0800 Subject: Expand stringify! - Fix trailing space --- src/expand/stringify.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/expand/stringify.cpp') diff --git a/src/expand/stringify.cpp b/src/expand/stringify.cpp index f43d896f..cbb5c65c 100644 --- a/src/expand/stringify.cpp +++ b/src/expand/stringify.cpp @@ -20,8 +20,9 @@ class CExpander: auto lex = TTStream(tt); while( GET_TOK(tok, lex) != TOK_EOF ) { + if(!rv.empty()) + rv += " "; rv += tok.to_str(); - rv += " "; } return box$( TTStreamO(TokenTree(Token(TOK_STRING, mv$(rv)))) ); -- cgit v1.2.3