Loss of paragraph mark on Paste to other apps

General questions about using TextPad

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

Post Reply
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Loss of paragraph mark on Paste to other apps

Post by chrisjj »

When I copy a line including para mark in TP 4.7.3 and then paste in e.g. Word, Wordpad, the para mark is lost.

Is this a known bug? Is there a workaround/fix? Thanks.
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

By "para mark" do you mean newline? Line breaks that have been saved as newlines ("hard breaks") in TextPad are always preserved when you copy text and paste it into another application. MS Word reinterprets them as paragraph breaks. Do you have word-wrap turned on? Are you copying wrapped lines that have not been saved with hard breaks? Check by turning on View | Visible Spaces. Make sure you have selected
Configure | Preferences | Document Classes | <Class> | Word wrapped text: | Save with hard breaks
or
View | Document Properties | Preferences | Word wrapped text: | Save with hard breaks
.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

> By "para mark" do you mean newline?

I mean what Textpad calls "end of line/paragraph"

> Line breaks that have been saved as newlines ("hard breaks") in
> TextPad are ...

These have not been saved at all.

> ... always preserved when you copy text and paste it into another
> application. MS Word reinterprets them as paragraph breaks.

Not in thise case.

> Do you have word-wrap turned on?

Yes, but the problme occurs also with it tuend off.

> Are you copying wrapped lines that have not been
> saved with hard breaks?

I am copying non-wrapped lines that have not been saved.

Chris
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

ben_josephs wrote:Line breaks that have been saved as newlines ("hard breaks") in TextPad are always preserved when you copy text and paste it into another application.
Save the document and try again.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

Same result.

Do you get a different result?
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Yes.

I did this:

I selected Configure | Word Wrap.
I typed a long line that wrapped.
I selected View | Document Properties | Preferences | Word wrapped text: | Save with hard breaks.
I selected View | Visible Spaces.
I saved the document and observed visble end-of-line markers appear at the ends of the lines.
I copied the text onto the clipboard.
I switched to MS Word.
I pasted the contents of the clipboard into a new Word document.
I selected Tools | Options... | Formatting marks | All.
I observed the end-of-paragraph markers at the ends of the lines.

Which part of this didn't work for you?
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

Thanks, Ben

> Which part of this didn't work for you?

None i.e. it all worked.

Whereas to show my problem, I did this:

1 In Textpad, File | New, and enter

aa[RETURN]

2 Edit | Select All, Edit | Copy

3 In Word, enter

bb[RETURN]

4 Click between the b's, and Edit | Paste.

What I expect is

b aa
b

What I get is

b aa b
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

This has nothing to do with TextPad. Word and WordPad are throwing the final newline away. Outlook does it, too. Excel, on the other hand, doesn't. I recommend asking Microsoft why their applications behave in these ways; I'm sure they'll reply instantly, informing you of their reasoning. :-)
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I recommend asking Microsoft why their applications behave in these ways; I'm sure they'll reply instantly, informing you of their reasoning.
Made my day! :D
Hope this was helpful.............good luck,
Bob
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

Thanks!
Post Reply