testing python-markdown

A. Pagaltzis pagaltzis at gmx.de
Sun Aug 14 00:49:37 EDT 2005


* Yuri T. <qaramazov at gmail.com> [2005-08-14 04:50]:

> 3. Markdown.pl converts "+\tText" to "+ Text", i.e. it uses

> THREE tabs. What is the actual rule there? I can see that

> Markdown.pl handles tabs via $text =~ s{(.*?)\t}{$1.(' ' x

> ($g_tab_width - length($1) % $g_tab_width))}ge; but this looks

> like line noise to me... Can someone provide pseudo-code for

> this?


It just means that it expands tabs to a variable number of spaces
up to the next tabstop.

Regards,
--
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;


More information about the Markdown-Discuss mailing list