[Tickets #14684] empty lines in tooltip information on task list
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Aug 22 09:40:14 UTC 2017
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: https://bugs.horde.org/ticket/14684
------------------------------------------------------------------------------
Ticket | 14684
Erstellt Von | birnbacs at gmail.com
Zusammenfassung | empty lines in tooltip information on task list
Warteschlange | Nag
Version | Git master
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
birnbacs at gmail.com (2017-08-22 09:40) hat geschrieben:
Hovering the mouse pointer over a task in list view effects a tooltip
displaying the task description. If the description has more than one
line, empty lines are shown between adjacent lines. The HTML source
code reveals that there are sequences of "\r","" introduced
between each two lines.
The tooltip is generated in nag/templates/list/_task.html.php, line 57:
echo Horde::linkTooltip($task->view_link->add($params), '',
'', '', '', $task->desc)
. $task_name . '</a>';
The linkTooltip method in line 596 of Horde.php reads:
$attributes['nicetitle'] = Horde_Serialize::serialize(explode("\n",
preg_replace('/<br\s*\/?\s*>/', "\n", $title)), Horde_Serialize::JSON);
It sems that the Serialize method (in JSON mode) introduces the
spurious quoted commas (see above).
More information about the bugs
mailing list