Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there, I haven't been able to find anything elsewhere so hopefully someone can help.
Comments to my blog posts are being displayed on my website as one line (paragraph) of text, rather than with their appropriate line breaks.
Is there any way I can perhaps convert the linebreaks in the comment to <br /> tags?
Thanks!Dave
You'll have to modify the macroscript to replace \n with <br />
Thanks Anthony,
I should have mentioned what I've tried already. Basically I found the line of code in the macro (uBlogsyListComments.cshtml):
<div class="uBlogsy_comment_message">@c.GetProperty("uBlogsyCommentMessage")</div>
and tried to modify it based on a line of code I found on another forum:
@Html .Raw(Html.Encode(Model.CommentText).Replace("\n", "<br />"))
I'm not familiar with razor, so I'm pretty much stuck :P
@c.GetProperty("uBlogsyCommentMessage").Replace("\n", "<br />") or perhaps \r or both
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uBlogsy comments displayed without line breaks
Hi there, I haven't been able to find anything elsewhere so hopefully someone can help.
Comments to my blog posts are being displayed on my website as one line (paragraph) of text, rather than with their appropriate line breaks.
Is there any way I can perhaps convert the linebreaks in the comment to <br /> tags?
Thanks!
Dave
You'll have to modify the macroscript to replace \n with <br />
Thanks Anthony,
I should have mentioned what I've tried already. Basically I found the line of code in the macro (uBlogsyListComments.cshtml):
and tried to modify it based on a line of code I found on another forum:
I'm not familiar with razor, so I'm pretty much stuck :P
is working on a reply...