• Login
Community
  • Login

CR LF line ending translation bug

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 382 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.
  • N
    networkproblemsolver
    last edited by Nov 5, 2023, 3:30 PM

    Hi, I noticed the CR LF translation didn’t work when I had a file with mixed CR’s and LF’s… I still ended up with a file with mixed LF or CRLF endings.

    The same file was correctly translated to CRLF using Notepad3 (no dis intended).

    Thx!!

    A 1 Reply Last reply Nov 5, 2023, 3:39 PM Reply Quote 0
    • A
      Alan Kilborn @networkproblemsolver
      last edited by Alan Kilborn Nov 5, 2023, 3:40 PM Nov 5, 2023, 3:39 PM

      @networkproblemsolver said in CR LF line ending translation bug:

      CR LF translation

      Tell us more about what you did. Otherwise THIS applies.

      1 Reply Last reply Reply Quote 3
      • M
        Mark Olson
        last edited by Nov 5, 2023, 6:48 PM

        I’d also note that if you have mixed CR and LF you can easily convert those all to CRLF with this find/replace:
        FIND: \R
        REPLACE WITH: \r\n
        Regular expressions ON
        BEFORE:
        be5003c8-89b3-497d-a3d1-f2aac078829e-image.png
        AFTER:
        3bc6fcca-3d23-45ea-ad4f-338f1842aa52-image.png

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