p.b returns a string (python str object). When you iterate through string you get individual characters in each iteration.
If you want to get lines you can use either: p.b.splitlines(False) or g.splitLines(p.b) On Saturday, September 8, 2018 at 2:46:07 PM UTC+2, Israel Hands wrote: > > If I write this > > @language python > > for line in p.b: > g.es(line) > > > I thought I would get lines output to the log pane but I get the > individual characters - is this normal? > > Leo 5.7.2 under Windows 10 > > > ta > > IH > -- 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.
