Page 2 of 2
Re: nl2br improvement
Posted: Tue Mar 29, 2011 10:34 am
by Timbalu
Oh it does work well with my local 1.5.4 installation. When did it change to support the new lang method?
Ok here your are
edit updated zip of first post
Re: nl2br improvement
Posted: Thu Apr 07, 2011 10:18 am
by Timbalu
After so many people having such a big discussion

- what shall we do with it?
It is a small improvement, using default nl2br, so I would pleg for upload.
Re: nl2br improvement
Posted: Fri Apr 08, 2011 7:04 pm
by garvinhicking
Hi!
Come on guys, someone must be using nl2br and be annoyed by its current workage. YellowLED?!
I still wasn't able to test it on my own, I'm sorry...
(I really try to look at it, and even if I don't manage to do it before 1.6 [which I hope will not happen], I'll upload it to Spartacus at the very least.

)
Regards,
Garvin
Re: nl2br improvement
Posted: Fri Apr 08, 2011 9:36 pm
by Mangek
I'm perfectly fine with it. (really?!

)
Well, because my entries are mostly just one image and text, it's working just fine.

I even changed to using <p> instead of <br> after updating to your version, Timbalu.

Re: nl2br improvement
Posted: Sat Apr 09, 2011 9:02 am
by Timbalu
Mist, another one hopping to P - I hope not because of the new ISOBR

Re: nl2br improvement
Posted: Sat Apr 09, 2011 9:45 am
by Mangek
Timbalu wrote:Mist, another one hopping to P - I hope not because of the new ISOBR

Nah not really, it made no change to my entries. Just made the code look neater, I suppose.

And I suppose paragraphs should use the <p> tag anyways, so.

Re: nl2br improvement
Posted: Tue Apr 12, 2011 3:10 pm
by onli
Ian, why don't we try to improve nl2p instead?
Re: nl2br improvement
Posted: Tue Apr 12, 2011 4:26 pm
by Timbalu
Hi Malte
I did not try to do, since you can already do things like <nl>inside no parsing</nl> with it, when specifying <nl> as a example prevent tag, I assume. I just tried to have some sort of isolation for br too.
Re: nl2br improvement
Posted: Tue Jul 05, 2011 11:24 am
by Timbalu
Update: added 4th version (2.11) on 2011-07-05
in special cases there was a leftover, which made editors with foldable Textblocks stumble
Re: nl2br improvement
Posted: Sat Sep 10, 2011 5:17 pm
by Jragon
Thanks for the plugin, it's just what I needed
But why not change <nl> to <pre> 'cos that's basically what you're doing...
Re: nl2br improvement
Posted: Sat Sep 10, 2011 6:40 pm
by Timbalu
Yes, but an hardcoded existing tag would'nt be as free as a non-existing-tag like <nl>. Imagine someones is using pre without code syntax and just wants normal line breaks inside...
Re: nl2br improvement
Posted: Sat Sep 10, 2011 9:02 pm
by yellowled
Timbalu wrote:Yes, but an hardcoded existing tag would'nt be as free as a non-existing-tag like <nl>.
You'll have to change that if XHTML2 ever becomes a standard, BTW.
http://www.w3.org/TR/2004/WD-xhtml2-200 ... #sec_11.2.
YL
Re: nl2br improvement
Posted: Sun Sep 11, 2011 9:19 am
by Timbalu
Oh my god....!

Thank you, YL.
Will it ever? To short I know, but I thought HTML5 is avoiding the further need of XHTML? It still would need someone writing entries in xhtml2, which should be extremely rarely, I assume. But I keep that in mind changing to something like <nonl></nonl>.
******btw******
What I have in mind would be some kind of hook via the nl2br plugin, integrating a BBC button for this element into the BBC row of the normal non-wysiwyg-editor 'frame'. If someone has an idea how to code this, please drop me a notice.