Re: [Rest2web-develop] multiline macros
Brought to you by:
mjfoord
|
From: Michael F. <fuz...@vo...> - 2006-08-05 16:16:41
|
martin f krafft wrote:
> Currently, {defn;something;a
> definition} (note the embedded newline) does not work, the macro
> will not be interpreted. Any chance of ignoring newlines?
The best option is to get your macro to use the '+/-' syntax I suggested
in the other email. See the coloring macro for an example.
Alternatively, changing the regular expression in 'textmacros.py' to
multiline should work :
re_macro = re.compile("(\{[+-]?\w+.*?})", re.M)
But I would prefer the first choice as I worry that macro matching may
become brittle if it searches multiple lines for matches.
Michael
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rest2web-develop mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/rest2web-develop
>
|