On Tue, 2013-12-17 at 17:16 +0100, Vratislav Podzimek wrote:
The EULA file is preformatted to be shown on console, which looks bad
in a big
GtkTextView we put it into. Formatting has to be cancelled preserving blank
lines.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
initial_setup/gui/spokes/eula.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/initial_setup/gui/spokes/eula.py b/initial_setup/gui/spokes/eula.py
index 26bc52f..f11d6ad 100644
--- a/initial_setup/gui/spokes/eula.py
+++ b/initial_setup/gui/spokes/eula.py
@@ -46,7 +46,9 @@ class EULAspoke(FirstbootOnlySpokeMixIn, NormalSpoke):
itr = self._eula_buffer.get_iter_at_offset(0)
with open(license_file, "r") as fobj:
for line in fobj:
- self._eula_buffer.insert(itr, line)
+ # EULA file is preformatted for the console, we want to let Gtk
+ # format it (blank lines should be preserved)
+ self._eula_buffer.insert(itr, line.strip() or "\n\n")
The second and all further lines should be appended with a space
(replacing the newline) before them. Fixing locally.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic