Skip to content

Commit 565494b

Browse files
committed
非windows平台换行符默认为lf
1 parent 85905c8 commit 565494b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/CodeService/LuaCodeStyleOptions.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ class LuaCodeStyleOptions
102102
bool table_append_expression_no_space = false;
103103

104104
bool long_chain_expression_allow_one_space_after_colon = false;
105-
105+
#ifndef _WINDOWS
106+
std::string end_of_line = "\n";
107+
#else
106108
std::string end_of_line = "\r\n";
109+
#endif
107110

108111
bool insert_final_newline = true;
109112

0 commit comments

Comments
 (0)