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

Title filter capitalizes characters after the apostrophe in a contraction #93

Closed
nightbook opened this Issue Feb 5, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@nightbook

nightbook commented Feb 5, 2012

Hello,

I'm writing to file a minor issue, but it's cause me some grief.

With a contraction such as don't, won't shouldn't, etc. if the |title filter is applied to a string containing these then the characters after the apostrophe are considered a new word and so are capitalized.

So the sentence 'I didn't do it' when pipped through the |title filter we get:
'I Didn'T Do It' with a capital T...

Thank you

njl added a commit to njl/jinja2 that referenced this issue Mar 13, 2012

Fix to pallets#93, this time respecting whitespace
Rejigger of title split to respect whitespace, also capitalize follow-on
hyphenated words.

rduplain added a commit that referenced this issue Mar 13, 2012

Merge pull request #103 from njl/fix-issue-93
Fix to #93, this time respecting whitespace
@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe May 31, 2013

The new implementation doesn't lower the other letters : "ABC" | title gives "ABC" (it was "Abc" before).

liZe commented May 31, 2013

The new implementation doesn't lower the other letters : "ABC" | title gives "ABC" (it was "Abc" before).

@davidism davidism closed this Jul 5, 2017

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