Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces in tags should be replaced with underscores #40

Open
salimfadhley opened this issue Mar 17, 2015 · 6 comments
Open

Spaces in tags should be replaced with underscores #40

salimfadhley opened this issue Mar 17, 2015 · 6 comments
Assignees

Comments

@salimfadhley
Copy link
Contributor

Good (bad) example, we have one tag which is "project manager", this should probably be rendered as "project_manager"

@stestagg
Copy link
Contributor

I don't know.
Does the '_' actually help with anything? My gut says that unless the space causes unsolvable problems, then we should keep it more readable?

@salimfadhley
Copy link
Contributor Author

It just makes the URLs look horrid with all the %20s in there.

@stestagg
Copy link
Contributor

Aah, that's a good point, some other thoughts then:

  1. In my opinion, the on-page formatting should always trump URL niceness in this sort of situation. But I don't mind being overruled on that
  2. The convention is to encode spaces in urls with '+' rather than %20. To get that to work we would have to change some things in the tagger (not ideal), but then the URLs look nicer, and things act more normally
  3. We could alternately render the tags with spaces, but encode the filenames (hence urls) with '_', giving us the best of both worlds. This should be simple to do with a tag filter, but the filter would have to be applied everywhere we're outputting tags (not that many tbh)

@stestagg
Copy link
Contributor

OK, so that was a ramble, but the tl;dr is:

I propose:

  1. When doing tag normalization in our plugin, convert whitespace to underscore
  2. When rendering, convert underscore to ' ' (so it's easier to read)

@salimfadhley
Copy link
Contributor Author

okay, will do.

@salimfadhley salimfadhley self-assigned this Mar 17, 2015
@lordmauve
Copy link
Contributor

My preference is for hyphenated tags. Works for me visually and in URLs.

On Tue, 17 Mar 2015 22:16 Salim Fadhley [email protected] wrote:

okay, will do.


Reply to this email directly or view it on GitHub
#40 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants