diff options
author | Brent Yorgey <byorgey@gmail.com> | 2007-10-18 20:30:54 +0200 |
---|---|---|
committer | Brent Yorgey <byorgey@gmail.com> | 2007-10-18 20:30:54 +0200 |
commit | d7361c1d0c1cbabef97ebde9c571de74ac6227e7 (patch) | |
tree | d0cd8486376ce2de63bad419b21ad548b7a41d0d | |
parent | e1248b2b893f917d0170f7916968c456b3c1f2e4 (diff) | |
download | XMonadContrib-d7361c1d0c1cbabef97ebde9c571de74ac6227e7.tar.gz XMonadContrib-d7361c1d0c1cbabef97ebde9c571de74ac6227e7.tar.xz XMonadContrib-d7361c1d0c1cbabef97ebde9c571de74ac6227e7.zip |
change definition of 'description' function for LayoutModifier so an extra space is not added if the modifier description is empty.
darcs-hash:20071018183054-bd4d7-0a1a4a2fb97cf789106b0e820b0471ea9f33146a.gz
-rw-r--r-- | LayoutModifier.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LayoutModifier.hs b/LayoutModifier.hs index 1bf276f..ee76306 100644 --- a/LayoutModifier.hs +++ b/LayoutModifier.hs @@ -58,6 +58,8 @@ instance (LayoutModifier m a, LayoutClass l a) => LayoutClass (ModifiedLayout m return $ case mm' of Just m' -> Just $ (ModifiedLayout m') $ maybe l id ml' Nothing -> (ModifiedLayout m) `fmap` ml' - description (ModifiedLayout m l) = modifierDescription m ++ " " ++ description l + description (ModifiedLayout m l) = modDesc ++ sep ++ description l + where modDesc = modifierDescription m + sep = if modDesc == "" then "" else " " data ModifiedLayout m l a = ModifiedLayout (m a) (l a) deriving ( Read, Show ) |