MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Bug Report: 4.9 - Paragraph line spacing changes after posting source code in blog post (Closed) (Mono Support )

Viewed 22644 time(s), 11 post(s) 2/19/2014 2:33:46 PMby super
idrazic

idrazic

3/12/2014 1:45:15 PM
Hello,

Here's the deal.

If you look at "\App_Templates\Default\BlogTemplates\BlogPost.ascx" you will see that content is wrapped with <p> tags:
<p><# Content #></p>

The html code produced by the editor for "format code" contains <div> tags
<div class="reCodeBlock">
...
</div>

Now, since <p> elements cannot contain <div> tags (see here), the <p> tags will automatically be closed,
hence your top text will be inside <p> and the bottom one will not.

I will need to speak with our designers to see if this can be fixed by using <div> tag around content (<div><# Content #></div>) or special handling in code is needed.

Regards,
Igor
This content has not been rated yet. 
1384 Reputation 152 Total posts
1 2