View Single Post
Old 09-02-2015, 12:42 PM   #49
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,134
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sherman View Post
Hi DiapDealer

This looks to be an amazing plugin.

Have you thought of making an addition to replace paragraphs formed using break tags to those using paragraph tags? Would this fit into the theme of the plugin? Would you be interested in implementing such a feature if it did fit?

Example of what I mean:
Code:
Turn this:
...
This is a paragraph...<br />
<br />
This is another paragraph.<br />
<br />
... 

Into this:
<p>This is a paragraph...</p>
<p>This is another paragraph.</p>
Currently I use multiple fragile regex's, and hope I don't stuff it up...


Your thoughts?
IMHO Your fragile REGEX is probably a more robust REGEX because you tune it to your exact condition

<p> is simple

what if the first tag was a:
<div class="foo"> <span class="bar">
or
<p class="foo"> <span class="bar">

or the <br /> was inside another tag

<i>there she<br /> blows</i> (up )
theducks is offline   Reply With Quote