Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Panels exports include extra indentation where it doesn't match Drupal coding standards. For example:
$display->panels = array();
$pane = new stdClass();
$pane->pid = 'new-36405db8-54c5-495c-ba8a-0a5f7ade185a';
Notice how $display
is prefixed with 2 spaces, but $pane
is prefixed with 4 spaces. There is no reason for the additional indentation!
This creates problems with using Features to export Panels pages (or Panelizer defaults or Mini-panels) and tools to automatically test coding standards - it generates lots of false positives.
I'll attach a patch to fix in a moment.
Comment | File | Size | Author |
---|---|---|---|
#1 | panels-export-indentation-2448825-1.patch | 1.02 KB | dsnopek |
Comments
Comment #1
dsnopekPatch is attached!
Comment #2
rodrigoaguileraWorks as expected.
Thanks!
Comment #3
rvilarTested and works as expected. Tanks!
Comment #4
japerryDone. Fixed!