Detab should be multi-byte aware?
Allan Odgaard
29mtuz102 at sneakemail.com
Mon Oct 9 19:43:38 EDT 2006
On 10. Oct 2006, at 00:52, Michel Fortin wrote:
> [...] From your description of the problem, I believe you're not
> using UTF-8.
No, here is an example showing the problem:
% Markdown.pl <<< $' Test:\n resume\tbar\n résumé\tbar\n'
<pre><code>Test:
resume bar
résumé bar
</code></pre>
% expand -t4 <<< $' Test:\n resume\tbar\n résumé\tbar\n'
Test:
resume bar
résumé bar
As you can see, expand is able to correctly convert tabs to spaces,
where Markdown.pl counts the é as occupying two columns.
More information about the Markdown-Discuss
mailing list