Share via

Remove line breaks from selected paragraphs

Anonymous
2015-11-03T10:35:34+00:00

Hi,

I am editing an glossary for my students, a huge one.

The glossary comes from another document I made some time ago and most of it looks like this:

mostarda di frutta Various fruits preserved

in a syrup flavored with mustard; traditionally eaten with bread or cold meat,

like chutney; from Cremona in Lombardy.

mouan Cambodian for chicken.

The end result is to look like this:

mostarda di frutta

Various fruits preserved in a syrup flavored with mustard; traditionally eaten with bread or cold meat, like chutney; from Cremona in Lombardy.

mouan

Cambodian for chicken.

My question is, can I delete the line breaks that are introduced in the definition of a glossary entry, but without affecting the name of the glossary entry?

I have so far looked at the problem of deleting paragraphs, but this put the entry name and definition together into one line and together with all other entries. Nothing in the document makes the definition text different from the entry names.

Microsoft 365 and Office | Word | 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

Anonymous
2015-11-04T07:01:33+00:00

Hello Rune,

Thank you for posting your query in Microsoft Community.

Before we proceed, I need more information to help you better.

  1. What do you mean by glossary comes from another document?
  2. How are you trying to access the document created some time ago?

To remove line breaks from a paragraph,

  1. Tap Ctrl + A
  2. To open Find and Replace dialog box, tap Ctrl + H.
  3. In “Find What”, type "^p^p". The "^p" means a line break.
  4. In "Replace with", type "===".
  5. Click on “Replace All”.
  6. Do another Find and Replace. For "Find what", use "^p". For the replacement, use " " (space).
  7. Finally, replace the above hard line breaks. Search for “===” and replace it with “^P”.

Hope this helps. I look forward to your reply to assist you further.

Thank you.

Was this answer helpful?

5 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2015-11-04T08:18:00+00:00

First, here is a guess that might work. If it doesn't, I have a few questions below that will help get you a better solution that will work.

Select the text (perhaps just select a few entries for a test at first). Press Ctr+Alt+K. This will invoke AutoFormat, which, I am guessing, will help adjust the content as pasted from the other source.

If it doesn't work, you can just undo to get it back to the way it was.

If it doesn't work, then tell me, what character is between the entry and its definition (i.e., between frutta and Various and between mouan and Cambodian)? Is it a space, or a tab, or something else? Also, what line break character is at the end of the two lines ending in preserved and meat?

If you can't see the characters, press Ctrl+Shift+8 to display the non-printing characters, then you will see them.

Let me know, and I will show you how to tidy this up.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful