Page 1 of 1

Inocrrect Line Joining

Posted: Sun Mar 08, 2015 12:19 pm
by usbpoweredfridge
I have found a piece of text that when clipped, produces a slightly incorrect result:
http://www.qdb.us/30938

Highlight from "#30938" to "female." and clip it, and the last line (beginning "Comment") is joined to the end of the second last line.

Chris

Re: Inocrrect Line Joining

Posted: Tue Mar 10, 2015 5:29 pm
by CintaNotes Developer
Hi Chris,
thanks for the report.

Can't reproduce in Chrome. Which browser you are using?

Re: Inocrrect Line Joining

Posted: Wed Mar 11, 2015 7:36 am
by usbpoweredfridge
Firefox (v36.0.1). Also have clipping.format.rtf.enabled = 0

I didn't consider different browsers - tried in IE, and it works ok there, but definitely not in Firefox (don't have Chrome installed so can't test it).

Chris

Re: Inocrrect Line Joining

Posted: Wed Mar 11, 2015 11:30 am
by usbpoweredfridge
This this one may be a regression of this older bug:
viewtopic.php?f=6&t=1878

Chris

Re: Inocrrect Line Joining

Posted: Wed Mar 11, 2015 3:29 pm
by CintaNotes Developer
Thanks for the additional info!
Do you have clipping.trimwhitespace on?
Does the bug go away when you turn it off?

Re: Inocrrect Line Joining

Posted: Thu Mar 12, 2015 7:44 am
by usbpoweredfridge
Yes, clipping.trimwhitespace = 1 is set, but changing it to 0 has no effect. Just to rule it out, I also set clipping.format.rtf.enabled = 0 back to the default (ie 1), but it had no effect either.

Re: Inocrrect Line Joining

Posted: Fri Mar 13, 2015 12:03 pm
by usbpoweredfridge
I might try clipping this page again when Firefox v37.0 lands - they apparently fix a 14 year old line ending copy/paste bug in that version:
https://bugzilla.mozilla.org/show_bug.cgi?id=116083

It may - or may not - fix this specific problem I have, will have to wait and see. The issue appears to not be a CN bug at least - if I paste that text into a text editor, the same thing happens as it turns out (any page on qdb.us that uses the 'Comment' tag at the end of the quote is affected, it isn't just the single example page I posted).

Chris

Re: Inocrrect Line Joining

Posted: Sun Mar 15, 2015 4:57 pm
by CintaNotes Developer
Chris, sorry for the delay!
I did some investigation and now I think the reason is an unfortunate HTML formatting.

First of, please observe that when you copy-paste this block from FF to Notepad, the same effect occurs.
This is due to the fact that the quote is formatted with a SPAN tag with "display:block" style.
Apparently Firefox ignores the "display" style when converting this to plain text, and joins it with the text that goes after.

Probably things will get better when CN learns to parse HTML, but for now nothing could be done here, sorry!

Re: Inocrrect Line Joining

Posted: Mon Mar 16, 2015 2:15 pm
by usbpoweredfridge
Sure, thanks. For the moment, I will just have to be aware when I clip a note from the qdb site that includes a 'comment' line, and manually adjust it when I do (ie cursor to the 'comment' and hit Enter).

Chris

Re: Inocrrect Line Joining

Posted: Tue Mar 17, 2015 11:33 am
by CintaNotes Developer
Yes, seems the most reasonable way out of this.

Re: Inocrrect Line Joining

Posted: Tue Mar 31, 2015 8:40 pm
by gunars
usbpoweredfridge wrote:I might try clipping this page again when Firefox v37.0 lands - they apparently fix a 14 year old line ending copy/paste bug in that version:
https://bugzilla.mozilla.org/show_bug.cgi?id=116083

It may - or may not - fix this specific problem I have, will have to wait and see. The issue appears to not be a CN bug at least - if I paste that text into a text editor, the same thing happens as it turns out (any page on qdb.us that uses the 'Comment' tag at the end of the quote is affected, it isn't just the single example page I posted).

Chris


Firefox 37.0 showed up for me today.

Re: Inocrrect Line Joining

Posted: Wed Apr 01, 2015 10:29 am
by CintaNotes Developer
Thanks Gunars. I wonder if the bug is indeed fixed there..

Re: Inocrrect Line Joining

Posted: Tue Apr 14, 2015 11:26 am
by usbpoweredfridge
Sadly not - still present with v37.0.1. Oh well, at least I am now aware of the problem and can manually adjust it when I come across further text like it.

Chris

Re: Inocrrect Line Joining

Posted: Tue Apr 14, 2015 11:44 am
by CintaNotes Developer
Ok, thanks for letting me know