Extraneous Esveldt (extraneous) wrote in ijournal,
Extraneous Esveldt
extraneous
ijournal

Bug: Line Endings

I've encountered problems with line endings in text pasted into iJournal before a post. Since the underlying protocol is HTTP-based, all lines should end in \r\n. However, \r text pasted into a NSTextView looks just like \r\n text. So, if I were to copy from my web browser, paste to iJournal, do some typing and then post, I would be submitting something with mixed line endings. This leads to automatic formatting issues and if I then edit a post, single \r's have been stripped leaving one block of text. Ick.

The solution (I think) would be to process all text before submitting it, converting all line endings to \r\n.

In general, iJournal really kicks some ass. Thanks,
Michael
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments