ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on December 11, 2013, 02:39:59 pm

Title: quoting
Post by: emanuele on December 11, 2013, 02:39:59 pm
Not sure if it is intended or it's only me, but it seems that "at some point" the behaviour of "quoting" changed (at least here) and now when quoting a message, the first line of the quoted message is on the same line as the quote tag:
Code: [Select]
[quote author=Ice link=topic=834.msg5820#msg5820 date=1386780013]Surfing the forums just came on my mind that SMF and now ElkArte does not handle categories in a modern way.
instead "before" there was a line ending:
Code: [Select]
[quote author=Ice link=topic=834.msg5820#msg5820 date=1386780013]
Surfing the forums just came on my mind that SMF and now ElkArte does not handle categories in a modern way.
That second way was easier to copy and past the quote to split up the message... O:-)
Title: Re: quoting
Post by: Spuds on December 11, 2013, 04:43:25 pm
Its changed many times, sometimes even for the better :P ... I think I caused this issue when I was chasing down our ability to endlessly add excess new lines to quotes and between quotes.
Title: Re: quoting
Post by: emanuele on March 15, 2014, 07:23:16 pm
There is a bit of inconsistency, because quoting PMs has the "old" behaviour, while quoting posts has the new one.
Title: Re: quoting
Post by: Spuds on March 15, 2014, 08:05:33 pm
So which one is the "right" behavior, I'm not even sure anymore  :'(
Title: Re: quoting
Post by: Antechinus on March 15, 2014, 08:09:58 pm
The second one is the way post quotes were always done in SMF, and it does make splitting a bit easier.
Title: Re: quoting
Post by: Spuds on March 15, 2014, 09:40:35 pm
OK, probably just need to update the ajax quote response with a few newlines, not sure if any of the other quote areas are any different but I suspect they are all like the PM area.
Title: Re: quoting
Post by: emanuele on March 16, 2014, 04:12:42 am
Quote from: Antechinus – The second one is the way post quotes were always done in SMF, and it does make splitting a bit easier.
ctrl+enter. :P <= this must be more evident, but I have no idea how...
Title: Re: quoting
Post by: Antechinus on March 16, 2014, 04:56:29 pm
Quote from: emanuele –
Quote from: Antechinus – The second one is the way post quotes were always done in SMF, and it does make splitting a bit easier.
ctrl+enter. :P <=
this must be more evident,

See results above. It not working properly in teh Firefox.

What I did was highlight "it must be more evident". It should have dropped a closing and opening tag before that, and the same after it.
Title: Re: quoting
Post by: emanuele on March 16, 2014, 05:45:07 pm
You are using it wrong. :P

@Spuds...? O:-)
Title: Re: quoting
Post by: Spuds on March 16, 2014, 05:47:35 pm
Sorry, I have no idea what was expected by doing that  :-\
Title: Re: quoting
Post by: emanuele on March 16, 2014, 06:18:36 pm
/me neither. lol

BTW, highlighting the text I would expect that it breaks either before or after, not at both points... I think.
Title: Re: quoting
Post by: Spuds on March 16, 2014, 06:46:47 pm
That split is the default behavior of the editor insert command insert(start, end) ... its adds at the end of start and the beginning of end .. the general use is to highlight text and select a command like bold ... then that selection is wrapped in the tag.  We are using it in inverse of that,  closing any tags ahead of the section and then reopening them at the end of the selection. 

Of course we could split/close before, split/open after the selection points and wrap the selection as well.  Not sure what we wrap the selection with, I guess with whatever open tags there were at that point, but why would you do that?