Page 1 of 1

NL2BR inconsistent output

Posted: Mon May 02, 2011 2:47 pm
by danst0
Hi,

After coming back to NL2BR after a short detour I am struggling with its output.

This is an example of my blog entry (plain text):

Code: Select all

<h5>News</h5>
Two large companies have been hit by major "virtual" disruptions. On the other hand the Japanese earthquake still disrupts production at some car makers.<ul>
<li><a href="http://en.wikipedia.org/wiki/PlayStation_Network" title="Wikipedia: PlayStation Network">Sony Servers</a> have been attacked and over 70 million customer files (including credit card information) has been stolen (<a href="http://blogs.wsj.com/digits/2011/04/22/sony-struggles-with-outage-of-playstation-network/?mod=google_news_blog" title="blogs.wsj.com">Wall Street Journal</a>)</li>
<li>Amazon cloud offerings (EC2) has been hit by an outage with several customers including Foursquare affected (<a href="http://news.yahoo.com/s/nm/20110421/wr_nm/us_amazon_cloud" title="Yahoo News: Amazon Cloud Services">Yahoo</a>)</li>
[...]
The screenshot shows the nl2br configuration.

And this is the resulting HTML code.

Code: Select all

<h5>News</h5><br />
Two large companies have been hit by major "virtual" disruptions. On the other hand the Japanese earthquake still disrupts production at some car makers.<ul><br />
<li><a href="http://en.wikipedia.org/wiki/PlayStation_Network" title="Wikipedia: PlayStation Network">Sony Servers</a> have been attacked and over 70 million customer files (including credit card information) has been stolen (<a href="http://blogs.wsj.com/digits/2011/04/22/sony-struggles-with-outage-of-playstation-network/?mod=google_news_blog" title="blogs.wsj.com">Wall Street Journal</a>)</li><br />
<li>Amazon cloud offerings (EC2) has been hit by an outage with several customers including Foursquare affected (<a href="http://news.yahoo.com/s/nm/20110421/wr_nm/us_amazon_cloud" title="Yahoo News: Amazon Cloud Services">Yahoo</a>)</li><br />
<li>Toyota will not be able to run full production until the end of the year due to the quake (<a href="http://www.nytimes.com/2011/04/23/business/global/23toyota.html?_r=1&partner=rss&emc=rss" title="NY Times: Toyota Says No Full Production Until Year’s End">NY Times</a>)</li><br />
<li>Also, Canon is struggling with the effects (<a href="http://www.reuters.com/article/2011/04/26/canon-idUSL3E7FP23S20110426" title="Reuters: Canon cuts profit outlook, parts recovery still months away">Reuters</a>)</li><br />
<li>Overall ratings for all Japanese car makers have been lowered by S&P (<a href="http://news.bbc.co.uk/today/hi/today/newsid_9468000/9468229.stm" title="BBC: 'Massive' disruption for Japanese car makers">BBC</a>)</li><br />
</ul><br />
So why are there all the br's? First they should not be there due to the exception in the plugin, second they should not be there because I clicked the "please use <p> instead"...?

Daniel

Re: NL2BR inconsistent output

Posted: Mon May 02, 2011 3:22 pm
by garvinhicking
Hi!

the tags you enter configure that INSIDE those tags no NL2BR occurs. Breaks *after* are not concerned. So adding "h5" there doesn't help you at all.

However, of course the "ul" should not have linebreaks, that is true. Do you maybe use other markup plugins that are interferring? Do you use the entryproperties-caching option? If so, you would need to clear your cache after changing options first...

You might want to check out this: http://board.s9y.org/viewtopic.php?f=2&t=17544 Timbalu added some options to the plugin there, also some <nonl2br>...</nonl2br>-alike tag that you might want to have.

Regards,
Garvin

Re: NL2BR inconsistent output

Posted: Mon May 02, 2011 3:36 pm
by danst0
I just republished one of the older articles and realized that afterwards the br's are gone...

So it seems that these tags are somewhere statically included, I already cleared the template_c directory before.
Is there a way to recreate all entries without having to do a "save as draft" -> "save as published" for each individual entry? Drop some database?

Daniel

Re: NL2BR inconsistent output

Posted: Mon May 02, 2011 3:37 pm
by garvinhicking
Hi!

Did you check the entryproperties-plugin caching I mentioned? If its installed, you should have a "cache all entries" link in your backend side navigation.

Regards,
Garvin

Re: NL2BR inconsistent output

Posted: Mon May 02, 2011 6:08 pm
by danst0
yeah, you were right! it was the caching in the extended entry properties.

Daniel