Skip to content
Snippets Groups Projects
Commit 736a34bc authored by Phil's avatar Phil
Browse files

Restricted conf lines representation to 76 characters per line.

parent 2a36ad4b
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,12 @@ class ConfClass: ...@@ -20,7 +20,12 @@ class ConfClass:
keys.sort() keys.sort()
for i in keys: for i in keys:
if i[0] != "_": if i[0] != "_":
s += "%-10s = %s\n" % (i, repr(getattr(self, i))) r = repr(getattr(self, i))
r = r.replace("\n"," ")
wlen = 78-max(len(i),10)
if len(r) > wlen:
r = r[:wlen-3]+"..."
s += "%-10s = %s\n" % (i, r)
return s[:-1] return s[:-1]
class ProgPath(ConfClass): class ProgPath(ConfClass):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment