help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spacing within org-mode tables when diacritics are used


From: Eli Zaretskii
Subject: Re: Spacing within org-mode tables when diacritics are used
Date: Sat, 02 Sep 2017 10:45:01 +0300

> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Fri, 01 Sep 2017 14:02:20 -0700
> 
> >> I think this might have something to do with multibyte characters.
> >> Running (toggle-enable-multibyte-characters) shows that the é does 
> >> indeed take two bytes.
> >
> > That couldn't be the reason.
> 
> Why not? Org table formatting used to be done with `length' on the
> string, I changed it to `string-width' precisely to fix wonkiness with
> multibyte characters.

Because 'length' returns the number of characters in a string, not the
number of bytes.  See its doc string.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]