Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Copy paste removing style for first line

I am losing formatting on text copy pasted into iWork apps when all the text is on one line.

To reproduce the issue:


1) Type text into pages, e.g. abc

2) Type some other text into TextEdit e.g. def

3) Underline the text in TextEdit with cmd+u

4) Copy the def in TextEdit cmd+c

5) Return to pages and highlight the b

6) Paste text over b using cmd+v


The resulting text will not have an underline. The only way to get the formatting to transfer is to put a newline somewhere in the underlined text in TextEdit, which will then apply the underline to the ENTIRE second line.

Does anyone know how to change this behavior? It is standard throughout iWork and is very irritating.

MacBook Pro with Retina display, macOS Sierra (10.12.1)

Posted on Nov 15, 2016 7:06 PM

Reply
5 replies
Sort By: 

Nov 16, 2016 11:38 PM in response to sakukurashinken1

Hi Sakukura,


I don't get the same results:

User uploaded file

Six examples.

For each set of three, I typed abc into a new Pages 3.6.2 document, set the format of the second and third example to Underline.

I them opened TextEdit and typed def into a new document, making no change to the format of the text. I Selected the text and Copied.

Returning to Pages, and working with the first three examples, I clicked to place the insertion point at the end of each line, then for each of the first two, pressed command-V to Paste, and for the third example in the set did Edit>Paste and Match Style.


Returning to your post I noticed the instruction to highlight the b in abc, then Paste at that location.


I typed and formatted three new examples, then followed those instructions, again using command-V to paste the first two examples in the set, and Edit > Paste and Match Style for the third.


As can be seen in the examples, each of the pastes picked up the style of the existing text, whether or not it was told to "match style."


Regards,

Barry

Reply

Nov 18, 2016 5:33 PM in response to Barry

"I don't get the same results:"


...but, I didn't do the same thing.


Here's another go.

User uploaded file

def was set to underline for all examples.

The third example in each set was done with Edit > Paste and Match Style. All other lines with command-V.


After doing the top four examples, I changed the TextEdit document from plain text to Rich Text, reapplied underline to def, then repeated the first four.


The pasted text, underlined in TextEdit, adopted the style set for the location it was pasted in Pages, with one exception: The final example, pasted into an empty line (which, I think had not been reset manually) kept the size and underline attributes it had in TextEdit.


Regards,

Barry

Reply

Nov 18, 2016 5:33 PM in response to sakukurashinken1

The existing style of the selected paste target in Pages has priority over style attributes applied to clipboard content from another application, or Pages document. This is true for Pages v5.6.2 on El Capitan (10.11.6), and for Pages v6.0.5 on macOS Sierra 10.12.1. Tested.


Pages '09 v4.3, when subjected to your steps 1 - 6:

  • El Capitan 10.11.6
    • The character 'b' is replaced by “def
    • If the original 'c' character is the last character on the line (without a paragraph break), the paste operation will insert “def” and a paragraph break, forcing the 'c' character to the next line.
  • macOS Sierra 10.12.1
    • The character 'b' is replaced by “def.”
    • No paragraph break is inserted, and the character 'c' is shifted right.
Reply

Nov 18, 2016 5:35 PM in response to Barry

Thats exactly what I found. The existing attributes are kept only when all the text is on one line...but if there is a newline, then the style attributes from the clipboard are applied to the entire line. I think its a bug with how iWork manages RTF import from the clipboard. Its awful, really.

Reply

Copy paste removing style for first line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.