diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-12-09 23:25:34 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-12-09 23:25:34 +0700 |
commit | c5ed95b5edcbf5afb7a187b44801253be9181a62 (patch) | |
tree | bc74a46e96569f47259b7373ada6efcc2ce1381d | |
parent | dba17aa83aa56ddbd5970f01f4ba675b3925c360 (diff) | |
download | vyatta-nat-c5ed95b5edcbf5afb7a187b44801253be9181a62.tar.gz vyatta-nat-c5ed95b5edcbf5afb7a187b44801253be9181a62.zip |
Fix extra line break when rule condition is empty.
-rwxr-xr-x | scripts/vyatta-show-nat-rules.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-show-nat-rules.pl b/scripts/vyatta-show-nat-rules.pl index 8c4f1da..ed21020 100755 --- a/scripts/vyatta-show-nat-rules.pl +++ b/scripts/vyatta-show-nat-rules.pl @@ -247,8 +247,7 @@ for $rule (@rules) { print "\n"; printf ($format2, $protocol, $translation_port_str); print "\n"; - printf ($format1, "", "", $condition) if $condition ne ""; - print "\n"; + printf ($format1, "", "", "$condition\n") if $condition; } print "\n"; |