[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] pygrub: expands tabs before displaying menus.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1258960652 0 # Node ID 8f4e0adc2b3b10dba27cbf62d1aee1842babf971 # Parent c2c2e67b8198b7e1e48597ebeac699d174c7217a pygrub: expands tabs before displaying menus. Otherwise the highlighting and line length trimming does not work as expected and the display appears corrupted. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/pygrub/src/pygrub | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r c2c2e67b8198 -r 8f4e0adc2b3b tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub Mon Nov 23 07:17:10 2009 +0000 +++ b/tools/pygrub/src/pygrub Mon Nov 23 07:17:32 2009 +0000 @@ -239,7 +239,7 @@ class Grub: break if y == self.selected_image: self.entry_win.attron(curses.A_REVERSE) - self.entry_win.addstr(y + 1 - self.start_image, 2, i.title.ljust(70)) + self.entry_win.addstr(y + 1 - self.start_image, 2, i.title.expandtabs().ljust(70)) if y == self.selected_image: self.entry_win.attroff(curses.A_REVERSE) self.entry_win.noutrefresh() @@ -271,7 +271,7 @@ class Grub: self.entry_win.attron(curses.A_REVERSE) # trim the line - l = img.lines[idx].ljust(70) + l = img.lines[idx].expandtabs().ljust(70) if len(l) > 70: l = l[:69] + ">" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |