Example:
This doesn't work:

// this is PHP comment
// @todo: http://drupal.org/node/1371968
    unset($form['metatags']);

The same in code tag:

// this is PHP comment
// @todo: http://drupal.org/node/1371968
    unset($form['metatags']);

This works:

// this is PHP comment
// @todo: http://drupal.org/node/1371968

The same in code tag:

// this is PHP comment
// @todo: http://drupal.org/node/1371968

Issue where it happened:
#1644554: Wizard shows other module fieldsets on every step

Comments

kenorb’s picture

Title: Links in comment as PHP core breaking the syntax » Links in comment as PHP code breaking the syntax
kingandy’s picture

I think the problem here is the firing sequence - the PHP filter is firing after the URL-to-A filter, so is deconstructing the HTML. IMO the input filters should be reordered so the link is not turned into a link until it's already been processed by the PHP formatter.

That said, it's only breaking the formatting because the URL-to-A filter is incorrectly considering linebreaks to be part of the link. See what happens if add a space after the link:

// this is PHP comment
// @todo: http://drupal.org/node/1371968 
    unset($form['metatags']);

It's still undesirable (should be an actual link or not linkified) but at least it's not breaking the colour formatting.

avpaderno’s picture

There is already a report about this.

geerlingguy’s picture

Status: Active » Closed (duplicate)
kingandy’s picture

Issue summary: View changes

added link