Skip to:
Content

bbPress.org

Opened 19 years ago

Closed 19 years ago

#731 closed defect (bug) (fixed)

Superflous spaces in tags

Reported by: goebelmasse Owned by:
Priority: normal Milestone:
Component: Front-end Version:
Severity: normal Keywords:
Cc:

Description

When posting a new topic, the tags are separated by commas. But most people do add a space after the comma, and this space is part of the displayed tag. The tags are stored with leading spaces in bbpress_tags.raw_tag.

This causes a little problem in the display of the tag lists. The link of the tag has a leading space, which make a little identation and looks funny when underlining links.

Suggested solution: strip() the raw_tag before storing it to the database to remove trailing and leading whitespace.

Attachments (1)

striptagspaces.php​ (443 bytes ) - added by goebelmasse 19 years ago.
bbPress Plugin - Strip Tags Spaces

Download all attachments as: .zip

Change History (3)

@goebelmasse
19 years ago

bbPress Plugin - Strip Tags Spaces

#1 @goebelmasse
19 years ago

Oh, there is nothing so simple that I can't do it wrong, so s/strip/trim/ - I'm not a good PHP hacker.

I fixed the problem with a very simple plugin, but I think it should be fixed in the official code.

#2 @mdawaffe
19 years ago

  • Resolution → fixed
  • Status new → closed

(In [921]) trim tags before creating. Fixes #731. Props goebelmasse

Note: See TracTickets for help on using tickets.