Code

Opened 7 years ago

Closed 7 years ago

#4602 closed (invalid)

truncatewords_html thinks <br/> is an open tag and turns it to </br/> which is an invalid.

Reported by: kmetaxas@… Owned by: adrian
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django.utils.text.truncate_html_words (used in trucatewords_html filter) thinks that the <br/> tag is an 'open' tag and tries to close it by adding a </br/> tag (which,ofcourse, is invalid). The W3C html validator revealed this problem to me.
I am using SVN version of Django (revision 5487).

This being my first ticket, i apologize if this information is not enough, though i can't think of anything else relevant.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by kmetaxas@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Oops I was developing on SVN but the server had an older revision. This problem does not exist on the recent revisions.
My apologies.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.