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

Fix Display Width with Unicode library #92

Closed
wants to merge 7 commits into from

Conversation

5long
Copy link
Contributor

@5long 5long commented Jun 30, 2013

#91 illustrates that long lines containing wide characters causes wrapping problems. Thus this patch.

The newly introduced dependency unicode carries correct display length for unicode charaters.

@gauteh
Copy link
Member

gauteh commented Jul 25, 2013

Merged.

@gauteh gauteh closed this Jul 25, 2013
@gauteh
Copy link
Member

gauteh commented Aug 3, 2013

I needed a (fix_encoding):

  def display_length
    @display_length ||= Unicode.width(self.fix_encoding, false)
  end

to handle some cases in my Mail test branch, could not reproduce the same in regular RMail. Might be needed for the future though.

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

Successfully merging this pull request may close these issues.

None yet

2 participants