[patch] Collapse consecutive hyphens in slug fields
|Reported by:||Tom Insam||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.