Modify

Opened 8 years ago

Closed 19 months ago

#1323 closed defect (wontfix)

Unnecessary HTML tags are showed in full description

Reported by: kayama Owned by: coderanger
Priority: normal Component: PaginateTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

When check "Show full description under each result" option and update query,
Unnecessary HTML tags like <p>...</p> are showed in each full descriptions.

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by kayama

String in HDF dataset are already escaped, and HDFWrapper.setitem
do escape, so getting string from HDF and store it back causes double
escaping.

Following patch will solve this problem.

--- paginateticketsplugin/0.10/paginate/web_ui.py.orig	2006-09-04 02:54:38.000000000 +0900
+++ paginateticketsplugin/0.10/paginate/web_ui.py	2007-03-14 16:46:58.000000000 +0900
@@ -61,7 +62,7 @@
     
             # Reinsert the smaller results set
             req.hdf.removeTree('query.results')        
-            req.hdf['query.results'] = results[start:end]
+            req.hdf.set_unescaped('query.results', results[start:end])
             
             # NOTE: On second thought, the column headers should go back to page 1 anyway
             #def walk_hdf2(node):

comment:2 Changed 19 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

This plugin is deprecated with Trac 0.11. The functionality was integrated to the Trac core in t:#216.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.