diff --git a/src/generator/config/ruleconvert.cpp b/src/generator/config/ruleconvert.cpp index b84692de3d..64a53d73d3 100644 --- a/src/generator/config/ruleconvert.cpp +++ b/src/generator/config/ruleconvert.cpp @@ -177,7 +177,7 @@ std::string rulesetToClashStr(YAML::Node &base_rule, std::vector if(!overwrite_original_rules && base_rule[field_name].IsDefined()) { for(size_t i = 0; i < base_rule[field_name].size(); i++) - output_content += " - " + safe_as(base_rule[field_name][i]) + "\n"; + output_content += " - " + safe_as(base_rule[field_name][i]) + "\n"; } base_rule.remove(field_name); @@ -200,7 +200,7 @@ std::string rulesetToClashStr(YAML::Node &base_rule, std::vector strLine += "," + rule_group; if(count_least(strLine, ',', 3)) strLine = regReplace(strLine, "^(.*?,.*?)(,.*)(,.*)$", "$1$3$2"); - output_content += " - " + strLine + "\n"; + output_content += " - " + strLine + "\n"; total_rules++; continue; } @@ -228,7 +228,7 @@ std::string rulesetToClashStr(YAML::Node &base_rule, std::vector strLine += "," + rule_group; if(count_least(strLine, ',', 3)) strLine = regReplace(strLine, "^(.*?,.*?)(,.*)(,.*)$", "$1$3$2"); - output_content += " - " + strLine + "\n"; + output_content += " - " + strLine + "\n"; total_rules++; } }