chiark / gitweb /
svc/connect.in: Squash newlines to spaces in `info' output. 1.0.0pre19.x
authorMark Wooding <mdw@distorted.org.uk>
Mon, 25 May 2020 15:29:45 +0000 (16:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 May 2020 15:29:45 +0000 (16:29 +0100)
Otherwise all sorts of things go horribly wrong.

svc/connect.in

index 0471396..78da325 100644 (file)
@@ -756,7 +756,7 @@ def cmd_info(name):
   items = list(peer.list())
   items.sort()
   for i in items:
-    T.svcinfo('%s=%s' % (i, peer.get(i)))
+    T.svcinfo('%s=%s' % (i, peer.get(i).replace('\n', ' ')))
 
 def cmd_userpeer(user):
   """