solved Blog Double Space - ProJam

Dazed
Dazed
@dazed
10 years ago
1,022 posts
Hey Guys!

Any idea why an admin blog looks correct on the admin page but on the index page, it is double spaced?

ex.

Admin Page:
Line 1
Line 2
Line 3

On the Index Page
Line 1

Line 2

Line 3

updated by @dazed: 02/14/15 04:07:22AM
michael
@michael
10 years ago
7,772 posts
Probably because the source code contains separate lines. This issue was fixed up in 5.2.20 core release.

If you use the <> button on the tinymce editor to look at the source code for that document while editing it, you'll probably see that it looks like this:
<p>this is a paragraph</p>
<p>this is a paragraph</p>
<p>this is a paragraph</p>
<p>this is a paragraph</p>
<p>this is a paragraph</p>

It should look like this:
<p>this is a paragraph</p><p>this is a paragraph</p><p>this is a paragraph</p><p>this is a paragraph</p><p>this is a paragraph</p>

I think it crept in by an update in the tinyMCE editor.

If that doesnt fix it then it could be that the output on the index page needs 'nl2br' blacklist option turned on.
eg:
{$item.blog_text|jrCore_format_string:$item.profile_quota_id:null:nl2br}
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Thanks Michael. It currently shows up as the below in the site_news blog. I tried changing it as mentioned but no change after refreshing cache. It is just odd since it displays fine on the admin blog page. It is just the index page only so it seems to be something specific with the index news blog?

{$item.blog_text|jrCore_format_string:$item.profile_quota_id|jrBlog_readmore|nl2br|jrEmbed_embed}<br>
douglas
@douglas
10 years ago
2,797 posts
Try changing it to this:

{$item.blog_text|jrCore_format_string:$item.profile_quota_id:null:nl2br}<br>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Thanks Michael and Douglas. That worked.