From 278304009d9f21edc0e07e84776caf823c74f731 Mon Sep 17 00:00:00 2001 From: flosacca Date: Wed, 22 Mar 2023 14:46:43 +0800 Subject: [PATCH] Make indentation in Clash profile consistent (#559) --- src/generator/config/ruleconvert.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; } }