Hi,
I'd love some feedback on whether it would be a good idea to change the
default omission for the Rails "truncate" and "excerpt" helpers from three
full stops ("...") to a Unicode ellipsis ("…").
I like how this only uses one character instead of three. Depending on the
font, it can use up less visual space than three separate full stops would.
I usually override the default
The obvious downside is that someone would use the helper in a non-Unicode
context and find this default behaviour problematic. I'm not sure to what
extend Rails is comfortable assuming that strings are Unicode.
I found this old (2010-ish) ticket with some positive discussion around it (
https://rails.lighthouseapp.com/projects/8994/tickets/1641-truncate-with-html-ellipsis-character-entity),
but I'm not sure if it ended up in Rails and was later removed or what.
Thoughts?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.