diff --git a/maker_rpz.py b/maker_rpz.py index cc6997f..1dea1f5 100644 --- a/maker_rpz.py +++ b/maker_rpz.py @@ -32,9 +32,9 @@ def RPZbuilding(excluded,incoming,output): for line in lines: if line.strip() and not line in exclude and not line.startswith(';'): f.write('\n'.join([line + ' CNAME .\n'])) - if line.startswith((';','$','@',' IN')): + elif line.startswith((';','$','@',' IN')): f.write('\n'.join([line + '\n'])) - if not line.strip(): + elif not line.strip(): f.write('\n'.join([line + '\n'])) f.close()