When you export anything that has line breaks in it, e.g. the node body, term description, etc, the output gets indented, so then when Features compares the in-code version against the in-database version it sees a difference and reports it to be overridden. This is the same issue as another one reported for StrongArm and is quite likely a core issue with CTools.

Comments

damienmckenna’s picture

Here's some example output to ponder:

function myfeature_uuid_features_default_content() {
  $nodes = array();

  $nodes[] = array(
    'uuid' => '66e5b124-c6d1-11df-bc3b-8f580926a1b6',
    'type' => 'webform',
    'language' => '',
    'status' => '1',
    'comment' => '0',
    'promote' => '1',
    'moderate' => '0',
    'sticky' => '0',
    'title' => 'Contact Us',
    'body' => 'Phone: 555.555.5555
  Email: <a href="mailto:me@example.com">me@example.com</a>
  
  Or submit your comments or questions to us along with the information below:',
    'format' => '1',
    'name' => 'Damien',
    'path' => 'contact',
    'date' => '2010-09-21 16:55:56 -0500',
  );
  return $nodes;
}
damienmckenna’s picture

I've reported a bug in CTools as I believe it to be where the bug lies: #920660: Line breaks in exported output cause objects to be considered as overridden

ezra-g’s picture

Status: Active » Fixed

The referenced issue has been fixed, so looks like this is fixed as well.

Hooray.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.