All the 'code' in a custom formatter exported with Features gets indented, so that every time it is exported, it adds two spaces to the beginning, which really makes it a hassle to edit, and could actually break things, depending on the content inside the formatter.

The attached patch fixes the way the the export is generated. It also changes the format slightly. Please give it a try and generate a formatter to see what I mean.

Thanks!

CommentFileSizeAuthor
features.inc_.patch767 bytesjoelstein

Comments

joelstein’s picture

Title: Fix indentation problems in Features exports » Fix indentation problems in exports
Status: Needs review » Needs work

The same problem happens on the admin/build/formatters/export/comma_separated_list form, if "custom formatters" is selected. The patch above doesn't solve this problem (it only solves the Features integration). I just wanted to point it out. It would make sense to generate the code in these two places in a similar fashion.

deciphered’s picture

Status: Needs work » Fixed

Fix for both issues committed to 6.x-1.5

Status: Fixed » Closed (fixed)

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