Page 1 of 1
Formatting lost when cutting and paste
Posted: Sun Mar 29, 2009 10:05 am
by alzamabar
Hi, I'm running Textpad 4.7. I've got an HTML document which I'm editing. When I cut and paste some text, the pasted text contains additional blanks which I haven't added. This is quite annoying since I've to re-format the document each time, wasting a lot of time.
Is there a workaround to this?
Regards,
M.
Posted: Sun Mar 29, 2009 10:19 am
by SteveH
Are you cutting and pasting from within TextPad or are you taking the content from another application?
You refer to <i>formatting</i> in your post - are you trying to copy formatted HTML from a browser window? If so, TextPad will only insert the plain text that has been copied and there may be some characters that it won't be able to display.
If you can provide more information on what you are copying the problem may be clearer.
Posted: Sun Mar 29, 2009 10:34 am
by alzamabar
SteveH wrote:Are you cutting and pasting from within TextPad or are you taking the content from another application?
You refer to <i>formatting</i> in your post - are you trying to copy formatted HTML from a browser window? If so, TextPad will only insert the plain text that has been copied and there may be some characters that it won't be able to display.
If you can provide more information on what you are copying the problem may be clearer.
Thank you for your reply. I'm writing HTML from within Textpad. Let's say that I've got a paragraph which I want to copy and change slightly. I copy and paste it. When I paste it the text is shifted by some tabs.
Example:
Text before copying:
Code: Select all
<p>
<ul>
<li>One item here</li>
<li>One item here</li>
<li>One item here</li>
</ul>
</p>
Text after pasting the above:
Code: Select all
<p>
<ul>
<li>One item here</li>
<li>One item here</li>
<li>One item here</li>
</ul>
</p>
Posted: Sun Mar 29, 2009 11:09 am
by SteveH
Check what setting you have for tab spaces within the application or document class.
It may be that the text you are copying includes tabs before the unordered list brackets and these are then spaced equivalent to 18 characters.
Turn on hidden text options to see whether the text is formatted with a mixture of tabs and spaces.
Hope this helps.
Posted: Sun Mar 29, 2009 11:28 am
by alzamabar
Which settings should I expect?
Posted: Sun Mar 29, 2009 1:21 pm
by SteveH
Have a look at the settings shown below for whatever document type you are currently using
But if turn on hidden text with the ¶ symbol in the tool bar you will be able to see if the strange spacing is due to a tab.
Posted: Sun Mar 29, 2009 1:33 pm
by alzamabar
Found the "problem". I just selected text, then positioned the cursor where I wanted to paste and the problem occurred. However if I copy from the beginning of the line and I paste putting my cursor at the beginning of the line the paste goes fine. I guess there is no escape to this.
Thanks for your help.
M.
Posted: Mon Mar 30, 2009 11:44 am
by MudGuard
Check in your document class, the setting for
automatically indent blocks
and
maintain indentation