ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with lua io.lines
@ 2013-08-14 14:05 Henning Hraban Ramm
  2013-08-14 14:15 ` Hans Hagen
  2013-08-14 14:15 ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2013-08-14 14:05 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Hi, after a long time I'm playing with ConTeXt again…

Current beta MkIV seems to have a bug in the Lua function io.lines:

for myline in io.lines(myfile) do
  logs.report(myline)
end

"myfile" just contains one line with a number, without return/newline.
If the number has more than one digit, I get single digits as "myline".


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-08-14 17:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 14:05 problem with lua io.lines Henning Hraban Ramm
2013-08-14 14:15 ` Hans Hagen
2013-08-14 14:32   ` Henning Hraban Ramm
2013-08-14 14:15 ` Wolfgang Schuster
2013-08-14 14:43   ` Henning Hraban Ramm
2013-08-14 15:00     ` Hans Hagen
2013-08-14 15:12       ` Hans Hagen
2013-08-14 17:02       ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).