Opened 16 years ago
Closed 4 years ago
#7792 closed defect (duplicate)
online log messages in timeline should be shortened using displayed chars limit
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | timeline | Version: | 0.11.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Oneliners in timeline view are shortened to 75 symbols string of raw HTML. If this HTML contains links (and probably other markup) then the displayed message in browser will be shorter by the amount of symbols markup tags take.
Is it possible to create shorten_line() alternatives called shorten_wiki_line() for unprocessed wiki markup and shorten_html_line() for html to adjust string length to specified amount of visible characters?
Below is a patch for render_timeline_event() function to take advantage of the bugfix if it becomes available.
If there was a function to strip all markup from the message then it could be used in cycle to determine how many tokens should wiki/html string include to fit.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | timeline.shorten.pass.to.onliner.diff added |
---|
comment:1 by , 16 years ago
Milestone: | → 0.13 |
---|
comment:2 by , 4 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Closing as a duplicate #2064.
See #2064.
Not closing as duplicate, as a reminder to do something like you suggested for the timeline events.