Copy/Paste Indent Issue

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
jbmoyer
Posts: 4
Joined: Sat Apr 22, 2023 1:10 pm

Copy/Paste Indent Issue

Post 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);
Last edited by AmigoJack on Sat Apr 22, 2023 11:32 pm, edited 1 time in total.
Reason: code formatting
User avatar
bbadmin
Site Admin
Posts: 796
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Copy/Paste Indent Issue

Post 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?
jbmoyer
Posts: 4
Joined: Sat Apr 22, 2023 1:10 pm

Re: Copy/Paste Indent Issue

Post 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.
User avatar
bbadmin
Site Admin
Posts: 796
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Copy/Paste Indent Issue

Post 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.
jbmoyer
Posts: 4
Joined: Sat Apr 22, 2023 1:10 pm

Re: Copy/Paste Indent Issue

Post by jbmoyer »

Perfect, it appears fixed now moving to the latest version. Thank you!
jbmoyer
Posts: 4
Joined: Sat Apr 22, 2023 1:10 pm

Re: Copy/Paste Indent Issue

Post 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
User avatar
bbadmin
Site Admin
Posts: 796
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Copy/Paste Indent Issue

Post by bbadmin »

You could copy just the text you need in block mode (excluding leading spaces) and then Edit/Insert/Paste as Lines.
Post Reply