Hi,

attached patch removes needless padding of the tag name with spaces
and uses textbox:margin() to set the padding of 4 so that it looks the
same as before.

cheers
lukash
>From 1e5d7fe4278f3c73baa189d9bfa51dfaea54acb3 Mon Sep 17 00:00:00 2001
From: Lukas Hrazky <lukk...@email.cz>
Date: Wed, 28 Oct 2009 20:58:23 +0100
Subject: [PATCH] taglist: don't pad name with space, use margin

Signed-off-by: Lukas Hrazky <lukk...@email.cz>
---
 lib/awful/widget/taglist.lua.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in
index 4ab7335..fc8b361 100644
--- a/lib/awful/widget/taglist.lua.in
+++ b/lib/awful/widget/taglist.lua.in
@@ -78,10 +78,10 @@ function taglist_label(t, args)
     end
     if not tag.getproperty(t, "icon_only") then
         if fg_color then
-            text = text .. "<span color='"..util.color_strip_alpha(fg_color).."'>"
-            text = " " .. text.. (util.escape(t.name) or "") .." </span>"
+            text = text .. "<span color='"..util.color_strip_alpha(fg_color).."'>" ..
+                (util.escape(t.name) or "") .. "</span>"
         else
-            text = text .. " " .. (util.escape(t.name) or "") .. " "
+            text = text .. (util.escape(t.name) or "")
         end
     end
     text = text .. "</span>"
@@ -152,7 +152,7 @@ function new(screen, filter, buttons, style, template)
         },
         {
             item = "title",
-            --margin = { left  = 2, right = 2 },
+            margin = { left  = 4, right = 4 },
             bg_resize = true,
         },
         layout = layout.horizontal.leftright
-- 
1.6.5

Reply via email to