From 59e88b250a359541914f1c71e9bffb3d8b1152fa Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Sep 2017 06:53:15 +0000 Subject: [PATCH] Fixed indent issue --- checkmyip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checkmyip.py b/checkmyip.py index 78f5343..aa8bb85 100755 --- a/checkmyip.py +++ b/checkmyip.py @@ -32,8 +32,8 @@ j2send = """{ "comment": "## Your IP Address is {{ ip }} ({{ port }}) ##", -"family": "{{ family }}", -"ip": "{{ ip }}", +"family": "{{ family }}", +"ip": "{{ ip }}", "port": "{{ port }}", "protocol": "{{ proto }}", "version": "%s", @@ -128,7 +128,7 @@ class ssh_server (paramiko.ServerInterface): ##### Method to merge Jinja templates ##### def j2format(j2tmp, valdict): template = jinja2.Template(j2tmp) - return template.render(valdict) + return template.render(valdict).replace("\n", "\r\n") ##### Cleans IP addresses coming from socket library #####