diff --git a/src/adblock/adblocksubscription.cpp b/src/adblock/adblocksubscription.cpp index 618d412b5..6e9b2c87a 100644 --- a/src/adblock/adblocksubscription.cpp +++ b/src/adblock/adblocksubscription.cpp @@ -138,7 +138,7 @@ void AdBlockSubscription::rulesDownloaded() foreach(const AdBlockRule & rule, allRules()) { if (rule.filter().contains("*******- user custom filters")) { customRules = true; - response.append("! *******- user custom filters -*************\n"); + response.append("\n! *******- user custom filters -*************\n"); continue; } if (!customRules) { @@ -147,6 +147,10 @@ void AdBlockSubscription::rulesDownloaded() response.append(rule.filter() + "\n"); } + if (!customRules) { + response.append("\n! *******- user custom filters -*************\n"); + } + file.write(response); file.close(); loadRules();