Text > *Remove Line Breaks* is indeed a very useful command. Thanks Jeffrey 
for pointing to it.

But *Remove Line Breaks* doesn't make a distinction between left aligned 
text and indented text as the proposed regular expression find/replace does.

In most cases, you want indented text to be left untouched.

Try both solutions on this snippet of text and look at the resulting Code 
example section :

--
This is some long wrapped text line, 
that is followed by some indented section.
    
    Code example:
    
    A = "a"; // A Comment.
    B = "b";
    
This is another wrapped paragraph with more text, 
blablabla, blablabla, blablabla ...
--

Jean
On Wednesday, November 3, 2021 at 6:19:21 PM UTC+1 jajls wrote:

> On 2021 Nov 2, at 23:04, Gavin Brooks <[email protected]> wrote:
>
>
> I have a lot of text that has been copied from a PDF, that I need to make 
> into text files for research purposes. When the text copied over, there was 
> a hard line return at the end of every sentences, and a blank space between 
> paragraphs. I need to the lines within the paragraph joined but the 
> paragraphs to remain separate and am looking for a regex to do that:
>
>
>
> I am surprised to see so much discussion of Find & Replace options, but no 
> one has mentioned that there is a built-in command that does exactly what 
> you ask:
>
> Text > Remove Line Breaks
>
> It works perfectly on your example text.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/d012fba4-68b4-458c-83db-031df4d2b467n%40googlegroups.com.

Reply via email to