Fixed indent issue

This commit is contained in:
root 2017-09-05 06:53:15 +00:00
parent e32597426d
commit 59e88b250a

View file

@ -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 #####