I've subscribed myself to this list so I am re-sending a previous message
got stuck in moderator approval.

On Tue, May 11, 2010 at 1:16 AM, Justin Vander Ziel <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.
> 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]]'        ,
> Full source and debug session log is available upon request. And, of
> course, I plan to share the TiddlyWiki target once I can get it to function.
> Thanks.
~ Justin
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