How do I remove excess line feed markup (LF)
-
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.
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login