Closed (fixed)
Project:
Custom Formatters
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 20:20 UTC
Updated:
27 Apr 2011 at 12:41 UTC
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!
| Comment | File | Size | Author |
|---|---|---|---|
| features.inc_.patch | 767 bytes | joelstein |
Comments
Comment #1
joelstein commentedThe 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.
Comment #2
decipheredFix for both issues committed to 6.x-1.5