Hi Justin,

> On Tue, May 11, 2010 at 1:16 AM, Justin Vander Ziel <zie...@gmail.com
> <mailto:zie...@gmail.com>> wrote:
>     Hi y'all,
>     I've created a mostly complete TiddlyWiki target (converts file to a
>     TiddlyWiki "pure-store" tiddler - i.e. html file for import into a
>     TiddlyWiki) except that my test subject keeps failing on the image
>     mark-up.  It seems that for the input line
>           [./foobar.jpg]
>     the condition
>          while regex['img'].search(line) and TAGS['img'] != '[\a]':
>     is never satisfied and instead the while loop gets stuck resulting
>     in an infinite nesting of the image like this
>              [img[img[./foobar.jpg]]]
>     If I forceably jump out of the loop and reset the line, the
>     conversion is completed.
Could you try to add
if TAGS['img'].find('[\a]')>=0: break
at the end of the while loop (line 4664 on the svn version)
>     The source of the issue seems to be that the Center alignment of an
>     image in TiddlyWiki is the default and yet left and right alignment
>     is supported:
>     'img'                  : '[img[\a]]'        ,
>     'imgAlignLeft'         : '[<img[\a]]'       ,
>     'imgAlignRight'        : '[>img[\a]]'       ,
>     'imgAlignCenter'       : '[img[\a]]'        ,
I think this is probaly because TiddlyWiki has a syntax very similar to 
txt2tags, hence the infinite loop.

Thanks for adding a new target.


ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
txt2tags-list mailing list

Reply via email to