mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +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
|
||||
BfParserData* bfParser = rootNode->GetSourceData()->ToParserData();
|
||||
if (bfParser != NULL)
|
||||
{
|
||||
BfAstNode endNode;
|
||||
BfAstNode::Zero<BfAstNode>(&endNode);
|
||||
endNode.Init(rootNode->GetSrcEnd(), rootNode->GetSrcEnd(), bfParser->mSrcLength - rootNode->GetSrcEnd());
|
||||
Visit(&endNode);
|
||||
{
|
||||
BfAstNode* endNode = mSource->mAlloc.Alloc<BfAstNode>();
|
||||
endNode->Init(rootNode->GetSrcEnd(), bfParser->mSrcLength, bfParser->mSrcLength);
|
||||
Visit(endNode);
|
||||
}
|
||||
|
||||
if (mCharMapping != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue