Django

Code

Ticket #1849 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] Collapse consecutive hyphens in slug fields

Reported by: Tom Insam Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Page titles such as 'foo-bar - baz' are being urlified to 'foo-bar---baz'. This patch collapses 1+ hyphens to just one, so the slug will be 'foo-bar-baz'. It also fixes the slugifer to do the same thing.

Attachments

collapse-hyphens.diff (1.2 kB) - added by Tom Insam on 05/12/06 04:42:46.
patch

Change History

05/12/06 04:42:46 changed by Tom Insam

  • attachment collapse-hyphens.diff added.

patch

05/14/06 23:25:38 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2905].


Add/Change #1849 ([patch] Collapse consecutive hyphens in slug fields)




Change Properties
Action