when displaying contents of blocks with input = Full HTML all comments are duplicated

Comments

dddave’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this. Can anybody else?

ndeschildre’s picture

Component: block.module » filter.module
Status: Postponed (maintainer needs more info) » Active

I confirm, for Drupal 6.20 here.

When using the "convert line breaks into HTML" filter, it duplicates HTML comments. And commenting the following line (filter.module, function _filter_autop($text)):

  foreach ($chunks as $i => $chunk) {
    if ($i % 2) {
      // Passthrough comments.
      if (substr($chunk, 1, 3) == '!--') {
        $output .= $chunk;  // <====== Comment this line
      }

it works.

Annoying for modules that use HTML comments as placeholders.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.