Fix additional space after card name
This commit is contained in:
parent
0f4420407d
commit
713fb1a290
@ -7297,14 +7297,23 @@ class Form
|
|||||||
{
|
{
|
||||||
$ret .= '';
|
$ret .= '';
|
||||||
}
|
}
|
||||||
elseif ($fieldref != 'none') $ret .= dol_htmlentities($object->$fieldref);
|
elseif ($fieldref != 'none')
|
||||||
|
{
|
||||||
|
$ret.=dol_htmlentities($object->$fieldref);
|
||||||
|
}
|
||||||
|
|
||||||
if ($morehtmlref)
|
if ($morehtmlref)
|
||||||
{
|
{
|
||||||
$ret .= ' '.$morehtmlref;
|
// don't add a additional space, when "$morehtmlref" starts with a HTML div tag
|
||||||
|
if(substr($morehtmlref, 0, 4) != '<div')
|
||||||
|
{
|
||||||
|
$ret.=' ';
|
||||||
|
}
|
||||||
|
|
||||||
|
$ret.=$morehtmlref;
|
||||||
}
|
}
|
||||||
$ret .= '</div>';
|
|
||||||
|
$ret.='</div>';
|
||||||
|
|
||||||
$ret .= '</div><!-- End banner content -->';
|
$ret .= '</div><!-- End banner content -->';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user