mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-14 04:03:51 +02:00
Fixed erroneous space insertion when reformatting interpolated strings
This commit is contained in:
parent
faebf0af06
commit
a0b7f5d1da
1 changed files with 6 additions and 0 deletions
|
@ -1451,6 +1451,12 @@ void BfPrinter::Visit(BfStringInterpolationExpression* stringInterpolationExpres
|
|||
if (expr->mSrcStart == curSrcIdx)
|
||||
{
|
||||
_Flush(strIdx);
|
||||
|
||||
// Avoid any additional formatting before the block
|
||||
mExpectingNewLine = false;
|
||||
mVirtualNewLineIdx = mNextStateModify.mWantNewLineIdx;
|
||||
mNextStateModify.mExpectingSpace = false;
|
||||
|
||||
if (auto block = BfNodeDynCast<BfBlock>(expr))
|
||||
HandleBlock(block, true);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue