diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-02-26 18:15:22 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-02-26 18:15:22 +0800 |
commit | ee773edacfeba650931c604e266cf0862dbc2bfe (patch) | |
tree | 106fe7838443cc1310c4ca08822a323fe029d7b1 /src/expand/stringify.cpp | |
parent | aa99de423034435cf765b9dc104f69fc20f84bd6 (diff) | |
download | mrust-ee773edacfeba650931c604e266cf0862dbc2bfe.tar.gz |
Expand stringify! - Fix trailing space
Diffstat (limited to 'src/expand/stringify.cpp')
-rw-r--r-- | src/expand/stringify.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)))) ); |