• Login
Community
  • Login

How do I remove excess line feed markup (LF)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 3.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alex Bell
    last edited by Jan 15, 2016, 2:54 AM

    I’m using NPP to markup a djvu.txt file to eventually turn the text into an ePub ebook.

    The djvu.txt file is from a book written 150 years ago, and has a line feed after each line of text. If I convert the text to HTML as it is each line of text will be a paragraph. I want to be able to select each paragraph in the text, and remove the excess LFs within that paragraph. Is there a way to do this?

    I’m sure I’ve done this before with NPP, but have forgotten how I did it.

    C 1 Reply Last reply Jan 15, 2016, 3:09 PM Reply Quote 0
    • C
      Claudia Frank @Alex Bell
      last edited by Jan 15, 2016, 3:09 PM

      Hello Alex-Bell
      I guess this can be done by using Find/Replace dialog.
      \n is used to represent LF.
      You either have to selext Extended or regular expression in seach mode.
      But be warned, windows eol is \r\n so be careful when replaceing \n.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors