tag:support.multimarkdown.com,2013-02-12:/discussions/problems-v4/3156-bizarre-behavior-when-carriage-return-in-editor-windowMultiMarkdown Software, LLC: Discussion 2019-04-09T04:09:59Ztag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-05T21:58:24Z2019-04-05T21:58:25ZBizarre behavior when carriage return in editor window<div><p>HI,<br>
Just updated to latest version 4.5.6 (93), and I'm editing a markdown document, and the <strong>editor window</strong> is displaying this strange behavior. When I hit 'return' at the end of a line (or beginning of next line) the last character or 2 drops down onto the new line, though the editor doesn't appear to 'see' this as separate from the characters before it. For instance, if I back up a character and hit delete, the previous character is erased (not the line break). I'm attaching 3 images, because it's hard to describe. Basically image 1 is time 1, before hitting 'return.' Then image 2 is after hitting return once, and image 3 is after hitting return a second time.</p></div>Edtag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-05T23:54:31Z2019-04-05T23:54:31ZBizarre behavior when carriage return in editor window<div><p>Ed,</p>
<p>Thanks for letting me know. Can you send me the file that this happens in so I can track down what’s happening? I have an idea but need a way to reproduce the exact circumstances in order to fix it.</p>
<p>Thanks!!</p>
<p>Fletcher</p>
<p>Sent from my iPhone</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-06T02:44:01Z2019-04-06T02:44:02ZBizarre behavior when carriage return in editor window<div><p>Same issue, file attached.</p></div>Mike Apgartag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-06T16:45:28Z2019-04-06T16:45:28ZBizarre behavior when carriage return in editor window<div><p>Mike,</p>
<p>Is there a certain thing I have to do to trigger the issue that you have figured out? I can't get the problem to occur when hitting return at various places in the document.</p>
<p>If it happens all the time for you, can you attach screenshots of your preferences so I can use the same settings? Maybe that will help me reproduce and fix.</p>
<p>Thanks!!</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-06T18:11:09Z2019-04-06T18:11:09ZBizarre behavior when carriage return in editor window<div><p>Never mind -- the file downloaded without proper encoding, which converted the file to ASCII. Once I got it in proper encoding, I can replicate the issue. Will fix and submit update ASAP. Unfortunately I am out of town, so probably can't submit to App Store on Tuesday. We'll see if I can do something sooner.</p>
<p>Thanks for the file!!!</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-07T14:47:20Z2019-04-07T14:47:20ZBizarre behavior when carriage return in editor window<div><p>I think it’s caused by a 4 byte multibyte character. I had to recode some byte to character offset conversion routines from C to Objective-C in order to improve performance on long files. Apparently I missed an edge case. I’ll fix and use all the tests from my C code.</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-07T23:07:33Z2019-04-07T23:07:33ZBizarre behavior when carriage return in editor window<div><p>Figured it out -- I misunderstood some of the nuances of UTF-16 encoding, after working predominantly with UFT-8 encoding for years. I updated the conversion routines I need, and have a more detailed test suite.</p>
<p>I'll push a new update to Apple Tuesday.</p>
<p>Thanks again for the example to help me track this down!</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/471521022019-04-09T04:09:58Z2019-04-09T04:09:58ZBizarre behavior when carriage return in editor window<div><p>A new version has been submitted to Apple that fixes this issue in my tests.</p>
<p>Thanks again!</p>
<p>Fletcher</p></div>Fletcher