From 0f88ebbc0b5f486edeae8cf9019fe017cb6d1b21 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 18 May 2016 16:32:07 -0400 Subject: [PATCH] console: Enforce text wrapping on 'unavailable' page --- ui/details.ui | 5 ++++- virtManager/console.py | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/details.ui b/ui/details.ui index 7578b349..95aa6a4b 100644 --- a/ui/details.ui +++ b/ui/details.ui @@ -5837,12 +5837,15 @@ if you know what you are doing.</small> True False + center + center <b>The console is currently unavailable</b> True center True True - 40 + 60 + 60 True diff --git a/virtManager/console.py b/virtManager/console.py index dcbce62b..f10b35a2 100644 --- a/virtManager/console.py +++ b/virtManager/console.py @@ -712,9 +712,9 @@ class vmmConsolePages(vmmGObjectUI): if ginfo.is_bad_localhost(): self._activate_unavailable_page( - _("Guest is on a remote host with transport '%s'\n" - "but is only configured to listen locally.\n" - "Connect using 'ssh' transport or change the\n" + _("Guest is on a remote host with transport '%s' " + "but is only configured to listen locally. " + "Connect using 'ssh' transport or change the" "guest's listen address." % ginfo.transport)) return