Code

Fixed tab w3c errors
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Aug 2006 04:23:10 +0000 (04:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Aug 2006 04:23:10 +0000 (04:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4450 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_tabs.inc

index 78147cd0fa6332c23b400a2319e017b6d90e3f28..0b422970e096bb4337ba4bf2e8bb2b7928a421d2 100644 (file)
@@ -141,11 +141,14 @@ class tabs
                $display.= "<td style=\"vertical-align:bottom;width:1px;\">";
 
                /* Shorten string if its too long for the tab headers*/
-               $title= '<nobr>'._($name).'</nobr>';
+               $title= _($name);
                if (mb_strlen($title, 'UTF-8') > 28){
                        $title= mb_substr($title,0, 25, 'UTF-8')."...";
                }
-               
+                       
+               /* nobr causes w3c warnings so we use &nbsp; to keep the tab name in one line */
+               $title= preg_replace("/ /","&nbsp;",$title);
+
                if ($_SESSION['js']==FALSE){    
                        $display.= "<div class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
                                   " class=\"$style[$index]\" value=\"$title\"";