The teaser of the book review is not properly filtered, that is, line breaks are not converted to br tags and so on. The main review field is formatted properly.

Comments

CrowChick’s picture

I am having a similar problem and no luck fixing it.

CrowChick’s picture

Status: Active » Needs review

I figured out a patch that fixes this. Replace the following:

function bookreview_validate(&$node) {
if (variable_get('teaser_length', 600)) {
if ($node->synopsis) {
$node->teaser = node_teaser($node->synopsis);
}
else {
$node->teaser = node_teaser($node->review);
}
}
else {
// teasers are disabled, display whole book review
$node->teaser = $node->body;
}

with:

function bookreview_validate(&$node) {
if (variable_get('teaser_length', 600)) {
if ($node->synopsis) {
$node->teaser = check_output(node_teaser($node->synopsis), $node->format);

}
else {
$node->teaser = check_output(node_teaser($node->review), $node->format);
}
}
else {
// teasers are disabled, display whole book review
$node->teaser = check_output(node_teaser($node->synopsis), $node->format);
}

jeremy’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev
Status: Needs review » Fixed

Applied to 4.7 release.

Anonymous’s picture

Status: Fixed » Closed (fixed)