Page 1 of 1

Copy/Paste Indent Issue

Posted: Sat Apr 22, 2023 1:16 pm
by jbmoyer
I might be missing somethign in Preferences, here is what I'm seeing.

I copy a block of text, indented or not and When I Paste it, some of the block is indented further than expected. the indents are maintained but pushed furhter right. I then need to selected it and back indent it. Something I'm missing in Preferesces? or bug? Heck my computer? Thanks!

Copy somethign like this:

Code: Select all

console.log(dataValues[0].Players[0].name);
console.log(dataValues[0].Players[0].mano[0].name);
console.log(dataValues[0].Players[0].mano[0].primary);
console.log(dataValues[0].Players[0].mano[0].secondary);
console.log(dataValues[0].Players[0].mano[0].dmg);
console.log(dataValues[0].Players[0].mano[0].bonus);
and it does this on paste

Code: Select all

console.log(dataValues[0].Players[0].name);
						console.log(dataValues[0].Players[0].mano[0].name);
						console.log(dataValues[0].Players[0].mano[0].primary);
						console.log(dataValues[0].Players[0].mano[0].secondary);
						console.log(dataValues[0].Players[0].mano[0].dmg);
console.log(dataValues[0].Players[0].mano[0].bonus);

Re: Copy/Paste Indent Issue

Posted: Sat Apr 22, 2023 5:58 pm
by bbadmin
Which version of TextPad are you using, and what do you see when you turn on visible spaces?

Does this happen in a document that you haven't made any other edits to?

Re: Copy/Paste Indent Issue

Posted: Sat Apr 22, 2023 8:05 pm
by jbmoyer
thank you!

v8.11.0 64bit

visible white space is on as is spaces, tabs and paragraphs

yes I just created a new file and typed random characters, added some tabs copy/paste did same.

Re: Copy/Paste Indent Issue

Posted: Sun Apr 23, 2023 9:15 am
by bbadmin
Please install the latest release from https://www.textpad.com/download and try with that. If you still get the same problem, please let me know what you actually see where the lines are indented, when visible spaces are turned on.

Re: Copy/Paste Indent Issue

Posted: Sun Apr 23, 2023 11:59 pm
by jbmoyer
Perfect, it appears fixed now moving to the latest version. Thank you!

Re: Copy/Paste Indent Issue

Posted: Tue May 09, 2023 12:25 am
by jbmoyer
Actually not fixed. I think it has to do with COPYing Indented Blocks, but PASTing them on a different indendation. Not sure if there is a setting to NOT remember indentation based on where indentation was copyied from..... thanks

Re: Copy/Paste Indent Issue

Posted: Thu May 11, 2023 6:56 am
by bbadmin
You could copy just the text you need in block mode (excluding leading spaces) and then Edit/Insert/Paste as Lines.