Prevent drogon_ctl create_view appending empty new lines to resulting view in c++ section (#1073)

This commit is contained in:
Martin Chang 2021-11-06 11:15:46 +08:00 committed by GitHub
parent 9e9bc7997e
commit 29f2d431ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ static void parseLine(std::ofstream &oSrcFile,
{
// std::cout<<"blank line!"<<std::endl;
// std::cout<<streamName<<"<<\"\\n\";\n";
if (returnFlag)
if (returnFlag && !cxx_flag)
oSrcFile << streamName << "<<\"\\n\";\n";
return;
}