[Enhancement] render line breaks in custom column *description* on hover column title

Bug #1956129 reported by Z Yin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

Currently, we can create custom columns, and each column has a "description" field, which will appear when hovering the column title.

I added several custom columns in my library, and my descriptions are quite long (several paragraphs), which contain instructions on how to fill values in those columns.

Currently the input field of the description is a small box, which is fine, because I can type my paragraphs in a text editor, then paste into the box. All line breaks are well preserved.

However, those line breaks don't render on hovering the column title - everything is joint into a single line. Usually this isn't an issue because most users' custom descriptions probably don't have line breaks. But for me, I hope I can see my paragraphs.

In css, this would be `whitespace: pre-wrap` or `whitespace: pre-line`.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1956129

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

Implemented using white-space:pre-wrap

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.