Hi,
Drupal 7.33 introduced a useful theme_debug
config option to inspect template suggested and used:
https://www.drupal.org/drupal-7.33-release-notes →
The effect of this option is that debug markup is inserted into Drupal output.
However when this option is enabled, Views Data Export does not prevent debug markup to be inserted in rendered results, breaking CSV and XML formats.
Here is an example of a rendered data export CSV display:
<!-- THEME DEBUG -->
<!-- CALL: theme('views_data_export') -->
<!-- BEGIN OUTPUT from 'sites/all/modules/views_data_export/theme/views-data-export.tpl.php' -->
<!-- THEME DEBUG -->
<!-- CALL: theme('views_data_export_csv_header') -->
<!-- BEGIN OUTPUT from 'sites/all/modules/views_data_export/theme/views-data-export-csv-header.tpl.php' -->
"Name","","Roles","Member for","Last access"
<!-- END OUTPUT from 'sites/all/modules/views_data_export/theme/views-data-export-csv-header.tpl.php' -->
<!-- THEME DEBUG -->
<!-- CALL: theme('views_data_export_csv_body') -->
<!-- BEGIN OUTPUT from 'sites/all/modules/views_data_export/theme/views-data-export-csv-body.tpl.php' -->
"User 1","user-1@example.com","","4 days 2 hours","4 days 1 hour ago"
"User 2","user-2@example.com","","4 days 4 hours","4 days 26 min ago"
"User 3","user-3@example.com","","4 days 8 hours","4 days 5 hours ago"
"User 4","user-4@example.com","premium","4 days 23 hours",""
The following patch disables this option before rendering the view.