Translations:Faq/Writer/016/2/en

From The Document Foundation Wiki
Jump to: navigation, search

You need to use a regular expression:

  • select Edit ▸ Find & Replace menu;
  • at the bottom left of the dialog box, click the More Options button;
  • check Regular expressions;
  • in the Find field, enter:
    • $ to find the end-of-paragraph characters,
    • ^$ to find the empty paragraphs (this paragraph mark at the start of paragraph = means an empty paragraph);
  • click the Find button;
  • to replace the line-break by an empty space, enter a space in the Replace with field, then click the Replace;
  • to replace the line-break by nothing (only delete the character), click the Replace button (without entering anything in the Replace with field); and
  • if you have a lot of line breaks to replace, you can also use the Replace all button. You are recommended to save your document before using this option, as it may lead to unexpected consequences.