From: michael libby Date: 2002-08-08T13:04:52+09:00 Subject: Re: Bug in TkText -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 07 August 2002 22:47, michael libby wrote: > TkText#dump method wants a block it seems. Try something like: > text.dump('tag', '1.0', '1.14'){|x| puts x} Perhaps this would be more illustrative: text.dump('tag', '1.0','1.14'){|x| puts x.inspect} which gives: ["tagon", "tag0000", 1.0] ["tagoff", "tag0000", 1.4] ["tagon", "tag0001", 1.6] ["tagoff", "tag0001", 1.7] ["tagon", "tag0000", 1.1] I don't understand the final tagon there, it should say '1.10', but has been converted to a numeric type which is then showing only single digit precision. Unfortunately this is wrong, because the numbers are not decimal values. Simply extending the precision won't help. This could be an easy enough bug to track down, but I'm not seeing anything pop out at me that would indicate how to fix this. -michael ++++++++++++++++++++++++++++++++++++++++++ Michael C. Libby public key: http://www.ichimunki.com/public_key.txt web site: http://www.ichimunki.com ++++++++++++++++++++++++++++++++++++++++++ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Uetq4ClW9KMwqnMRAj19AJ9hLeDdL2FV/5m2bwoLrTUwv38ulACgkZ6U YqS4zwlEf3MOdoD2FUzsuH4= =FJo/ -----END PGP SIGNATURE-----