Definitely looks like a bug to me, snippet of code from the printBody
function in news_item.inc
if ($this->attr('show_body')) {
?>
<div id="sq_news_body">
<p><?php echo $this->attr('body'); ?></p>
</div>
<?php
}
Given that body
will always be the result of a WYSIWYG area, it doesn’t make sense to wrap it in a <p>
tag.
NickyP is right that a type customisation for the paint layout will let you work around it. A paint layout to replicate the default behaviour but without the p
tag issues around body and summary would be roughly:
%begin_asset_attribute_show_headline%
<h1>%asset_attribute_name%</h1>
%end_asset%
%begin_asset_attribute_show_summary%
<div id="sq_news_summary">
%asset_attribute_summary%
</div>
%end_asset%
%begin_asset_attribute_show_body%
<div id="sq_news_body">
%asset_attribute_body%
</div>
%end_asset%
<div id="sq_news_contact">
%begin_asset_attribute_show_contact_name%
<p>Contact: %asset_attribute_contact_name%</p>
%end_asset%
%begin_asset_attribute_show_contact_phone%
<p>Phone: %asset_attribute_contact_phone%</p>
%end_asset%
%begin_asset_attribute_show_contact_email%
<p>Email: %asset_attribute_contact_email%</p>
%end_asset%
</div>
Given that fixing it would involve changing the behaviour of existing uses, and there’s a workaround, I doubt it’d get fixed.