Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

How to delete end-of-line characters #5574

Closed LeeMSilver closed 1 week ago

LeeMSilver commented 1 week ago

Windows:

I have a multi-line file that I want to convert to a single-line file with each line separated with a ,. I tried replacing \r\n with , and no change was made. Note that SynWrite (and other editors) can do this. Am I missing a configuration item?

Alexey-T commented 1 week ago

Internal storage for RegEx has only LF's (file will be saved with CR LF of course). so replace \n to ,. it works, I tested.

MiroslavMatas commented 1 week ago

Windows:

I have a multi-line file that I want to convert to a single-line file with each line separated with a ,. I tried replacing \r\n with , and no change was made. Note that SynWrite (and other editors) can do this. Am I missing a configuration item?

image

Alexey-T commented 1 week ago

@MiroslavMatas user wanted the opposite: replace EOLs with commas.