From 5c58d2c1401af6998ab30b1ed8c5b768a1e78d18 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 6 Mar 2014 20:08:44 +0000 Subject: [PATCH] no extra white space for image-only buttons --- lam/lib/html.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 2c4899cf..071b75dc 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -2683,7 +2683,10 @@ class htmlLink extends htmlElement { function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { $image = ''; if ($this->image != null) { - $image = '' . $this->text . ' '; + $image = '' . $this->text . ''; + if (!empty($this->text)) { + $image .= ' '; + } } $title = ''; if ($this->title != null) {