6.0.0-beta1
8/29/25

[#14684] empty lines in tooltip information on task list
Summary empty lines in tooltip information on task list
Queue Nag
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester birnbacs (at) gmail (dot) com
Created 08/22/2017 (2929 days ago)
Due
Updated 08/24/2017 (2927 days ago)
Assigned
Resolved 08/24/2017 (2927 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/24/2017 12:55:42 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
08/24/2017 12:55:34 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 0e1d00241f841e40d4b32567121504cb6aa75c5e
Author: Jan Schneider <jan@horde.org>
Date:   Thu Aug 24 14:54:38 2017 +0200

     Line breaks may consist of CRs too (Bug #14684).

  framework/Core/lib/Horde.php | 35 ++++++++++++++++++++++++++---------
  framework/Core/package.xml   |  4 ++--
  2 files changed, 28 insertions(+), 11 deletions(-)

http://github.com/horde/horde/commit/0e1d00241f841e40d4b32567121504cb6aa75c5e
08/22/2017 09:40:14 AM birnbacs (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Nag
Summary ⇒ empty lines in tooltip information on task list
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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&quot;,&quot;" 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).

Saved Queries