mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed whitespace at the end
This commit is contained in:
parent
e0588e83aa
commit
2eac63e31c
1 changed files with 4 additions and 5 deletions
|
@ -2791,11 +2791,10 @@ void BfPrinter::Visit(BfRootNode* rootNode)
|
||||||
// Flush whitespace at the end of the document
|
// Flush whitespace at the end of the document
|
||||||
BfParserData* bfParser = rootNode->GetSourceData()->ToParserData();
|
BfParserData* bfParser = rootNode->GetSourceData()->ToParserData();
|
||||||
if (bfParser != NULL)
|
if (bfParser != NULL)
|
||||||
{
|
{
|
||||||
BfAstNode endNode;
|
BfAstNode* endNode = mSource->mAlloc.Alloc<BfAstNode>();
|
||||||
BfAstNode::Zero<BfAstNode>(&endNode);
|
endNode->Init(rootNode->GetSrcEnd(), bfParser->mSrcLength, bfParser->mSrcLength);
|
||||||
endNode.Init(rootNode->GetSrcEnd(), rootNode->GetSrcEnd(), bfParser->mSrcLength - rootNode->GetSrcEnd());
|
Visit(endNode);
|
||||||
Visit(&endNode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mCharMapping != NULL)
|
if (mCharMapping != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue