From 1a8bd35e274e0114e6f40bebef925645716ac53a Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Fri, 12 Sep 2008 17:42:43 +0200
Subject: [PATCH] Fixed conf representation

---
 scapy/config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scapy/config.py b/scapy/config.py
index 783e8092..01764dc5 100644
--- a/scapy/config.py
+++ b/scapy/config.py
@@ -27,8 +27,8 @@ class ConfClass(object):
         for i in keys:
             if i[0] != "_":
                 r = repr(getattr(self, i))
-                r = r.replace("\n"," ")
-                wlen = 78-max(len(i),10)
+                r = " ".join(r.split())
+                wlen = 76-max(len(i),10)
                 if len(r) > wlen:
                     r = r[:wlen-3]+"..."
                 s += "%-10s = %s\n" % (i, r)
-- 
GitLab