Skip to content

Commit 1d40e4a

Browse files
committed
Merge branch 'kafku-fix/issue278'
2 parents b6fc953 + 33499f8 commit 1d40e4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/attributes.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,13 @@ namespace attributes {
14401440
// check for name
14411441
std::string name;
14421442
if (pos != std::string::npos) {
1443+
// insert whitespace if variables are joint with '&'
1444+
std::string::size_type ref_pos = arg.substr(pos).find_last_of("&");
1445+
if (ref_pos != std::string::npos) {
1446+
pos += ref_pos + 1;
1447+
arg.insert(pos, " ");
1448+
}
1449+
14431450
name = arg.substr(pos);
14441451
trimWhitespace(&name);
14451452
}

0 commit comments

Comments
 (0)