On Mon, Feb 27, 2017 at 7:27 PM, lewis <[email protected]> wrote:
> After the commit ef31ebe7d989 - This button fails: > [snip] > Thanks for this report. g.extractExecutableString needs a rethink. The present code will extract code in *any *language, except reStructuredText and markdown. But that's overkill, and wrong. A cff verifies that Leo presently calls g.getScript only when we are about to execute *python* code. Hardly surprising. This is good news. g.extractExecutableString can be simplified. It will return all and *only *lines under the control of @language python. Furthermore, it will assume @language python initially. This will kill several birds with one stone: - No more spurious "can not execute multiple languages" message. - Simplifies the code. - Allows python code to be freely intermixed with comments in *any* other language. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
