diff --git a/features.export.inc b/features.export.inc index c4b4035..fb6e26b 100644 --- a/features.export.inc +++ b/features.export.inc @@ -302,6 +302,8 @@ function features_export_render($export, $module_name, $reset = FALSE) { // Finalize strings to be written to files $code = array_filter($code); foreach ($code as $filename => $contents) { + // Normalize line endings to be cross-platform independent. + $contents = str_replace(array("\r\n", "\r"), "\n", $contents); $code[$filename] = "