Hans Jeuken <haje@xxxxxxxxxxxxxxx> wrote:
>
> Hi all,
>
> The Save method in this widget appends an empty line to the saved text.
> I did have a short look at the code but didn't see a quick fix.
>
This sounds familiar. The problem is that $text->get("1.0", "end")
seems to always append a newline. It's probably better to write
$text->get("1.0","end - 1c"). Maybe it's enough to correct the Tk::Text
method Contents().
Regards,
Slaven
--
__o Slaven Rezic
_`\<,_ slaven <at> rezic <dot> de
__(_)/ (_)____
______________________________________________________________________________
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
|