copy() and paste() - newline

Post Reply
Posts: 1
Joined: Thu Aug 18, 2016 8:24 pm

copy() and paste() - newline

Post by dzordzyk » Thu Aug 18, 2016 8:48 pm


I'm trying to get copy() and paste() working, but I'm experiencing problems with newline. In other topic on the forum I found that to not select the new line before copy(), I should use selectString(line, 1), so that's what I'm using. My code in the trigger is:
Code: [show] | [select all] lua
selectString(line, 1)
local str_replace = "[2/6] "
However, for some reason, there is an extra newline. Image The reason I'm using copy/paste is because I want to preserve the original coloring from the MUD. Can anyone help here?


Moderator Edit: brought screen shot image into post... :)

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests