Skip to content

Commit c202fb3

Browse files
committed
命令行下输出时行尾必然为\n
1 parent c474ffa commit c202fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeFormat/src/LuaFormat.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ bool LuaFormat::Reformat()
115115
}
116116
}
117117

118+
if(_outFile.empty())
119+
{
120+
_options->end_of_line = "\n";
121+
}
122+
118123
LuaFormatter formatter(_parser, *_options);
119124
formatter.BuildFormattedElement();
120125

0 commit comments

Comments
 (0)