Viewing a single comment thread. View all comments

BranWafr t1_j55f0rz wrote

Notepad++ can easily strip out line breaks, so I just paste into that and remove the line breaks with a search and replace.

71

Dreunin t1_j55f7tj wrote

Sure, you can do that, but it's still not as fast

41

CapnHanSolo t1_j560szk wrote

What if I just press ctrl+f on the pdf and use the find bar. Would that work

6

Bunanuhs t1_j57qgrq wrote

You use the replace function and replace "^p" with a single space.

5

dubbzy104 t1_j562vix wrote

Probably not. Notepad++ and other text editors look for the new line character “\n”, whereas most pdf search tools will look for the literal characters \ and n

2

DigitalSteven1 t1_j564f9s wrote

Just a minor correction, the almost universal escape character is a backslash. i.e. it's "\n" rather than "/n."

Windows does some funny stuff in cmd and powershell, being caret (^) and backtick (`). Afaik "/" isn't used anywhere, though.

2

dubbzy104 t1_j565brs wrote

Gah, you’re right! I blame it on me being on mobile so the key locations are different, and me being sleep deprived. Surely it’s not because I’m a bad programmer…

2

Old_timey_brain t1_j59v0ar wrote

Are these not simple formatting options we want to get rid of?

I paste into a new email set to plain text, then copy back out.

1

bbqfoot34 t1_j58q9ma wrote

I really tried with notepad but it doesn't seem to strip everything as effectively as a url. I wish there was an add-on because sometimes there's a lot of text

1

BranWafr t1_j592dqq wrote

Not Notepad, Notepad++, they are very different programs.

1