Share via

line breaks ignored with plain text copy and paste

Anonymous
2016-11-16T21:35:37+00:00

Powerpoint 2016 for Mac completely ignores line breaks when you copy and paste from plain text file or terminal window. Never happened to me in PP 2011. Special paste doesn't help much. The only workaround I was able to find so far is to paste to a Word document first, and then copy and paste it to the Powerpoint. Somehow Word does respect Unix LF (line breaks), while PP doesn't. Any ideas how to fix that? Seems like a bug to me.

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

John Korchok 232.4K Reputation points Volunteer Moderator
2017-01-15T02:26:00+00:00

I can confirm this is a bug. Please click on the small smiling-face icon in the upper-right corner of the program window, choose Tell Us What Can Be Better and describe the problem in details. If you can create before and after screen shots, then paste them into a slide before creating the report, that will show the effect. Submitting sends the information to the Mac programming team. I have already reported this one as well.

Was this answer helpful?

0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-02-19T16:13:09+00:00

    I'm seeing this problem, too, and it's a BIG PROBLEM!

    I teach computer science at The University of Arizona.  I often want to paste code onto a slide.  With PowerPoint for Mac 2011, that works fine.  With PowerPoint for Mac 2016, multiple lines are squashed onto a single line, completely ruining the layout.

    Although I see this squashing text pasted from Aquamacs 2.4 and iTerm 0.9.6, I've found that text pasted from Terminal 2.6.1 and TextEdit 1.11 does not exhibit the squashed behavior BUT blank lines are doubled.

    Here's a bit of a workaround--the following pipeline takes the text on the clipboard, converts it to RTF, and then puts it back on the clipboard.  Line breaks are preserved, but empty lines are doubled.

    pbpaste | textutil -stdin -stdout -convert rtf | pbcopy

    Here's a shell script, with an embedded Python program (2 or 3), that seems to avoid the empty line doubling. I'll show it with cat:

    % cat ~/sbin/ppt-paste

    pbpaste | python -s <(cat <<X

    import sys

    sys.stdout.write(sys.stdin.read().replace("\n\n","<p><br>").replace("\n","<br>").replace(" "," "))

    X) | textutil -stdin -stdout -format html -convert rtf | pbcopy

    If you don't know how to work with scripts, here's a simple way to use it: First save it as ppt-paste in your home directory.  Then, start up Terminal.  Switch back to whatever app has text of interest and copy it to the clipboard.  Switch to Terminal and type 'bash ppt-paste'.  Switch to PPT and paste.  Repeat as needed.  Note that up-arrow in Terminal recalls previous commands, so no need to type 'bash ppt-paste' every time.

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-01-13T23:04:21+00:00

    Richard - Not helpful... at all. Fix this function right away: It worked in the older versions of PowerPoint.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. John Korchok 232.4K Reputation points Volunteer Moderator
    2017-02-21T01:43:43+00:00

    This is a known problem. Microsoft seems oblivious to the fact that there are other operating systems out here in the real world. Please click on the small smiley-face icon in the upper-right corner of the program screen, choose Tell Us What Can Be Better, describe the problem and submit. Sending the report routes it to the Mac programming team. I reported this issue a month ago, but have done so again.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-11-17T17:41:51+00:00

    Hi,

    We got your concern. Have you tried uninstalling and reinstalling Office 2016? Because some bugs and corrupted files gets fixed after reinstalling the software. Also, if you see any updates for Office 2016, make sure you run them.

    Keeps us updated.

    Was this answer helpful?

    0 comments No comments