On Wed, Feb 25, 2009 at 11:05 AM, Hans <[email protected]> wrote: > >> also, lines of text should be enclosed in <p></p>. >> just a reminder. :) > > yes, and that's where it gets difficult!! > > aiming for output like > > <p>a line of text<br />a second line</p> > <h1>Header One</h1> > <p>a line of text<br />a second line</p> > <h2>Header Two</h2> > <p>a line of text<br />a second line</p> > <h3>Header Three</h3> > <p>a line of text<br />a second line</p> > <div><p>text in a div<br /> > a line of text</p></div> > <div><p>text in a div<br /> > a line of text</p></div>
The way the markup works, to simplify a bit, is any line followed by \n\n gets tagged and later converted to a <p>line</p>. So you should get those <p> tags around the lines if you insert a space after the each one. If there's only one line, you will get <br />. If you follow the right editing, the markup will generally work. FYI if you are working on this at all, the p tags are inserted in the domarkup function (engine) after the markup table is completed. To get this level of performance (not perfect) I had to introduce special cleanup rules for the headers and bullets, and rework the BOLTMlines function. The BOLTMparagraphs function also has potential to do some conditional testing and exclude certain kinds of content. Like [messages], or [form]. I just didn't have time to test all the possible permutations. Got a couple things right and threw it out there. Sorry I have not yet enabled BoltWire to use it. I'm not confident to run it on my main sites. And too lazy to set up a different installation. :) Still if you can give small, specific glitches, I'll try to fix. Glad you got things working... I couldn't understand what you were seeing. Perhaps you had a custom markup rule or something. Cheers, Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
