diff --git a/packages/analytics/addon/components/ca-report-preview.hbs b/packages/analytics/addon/components/ca-report-preview.hbs index f9e9b570d..cf99e1d1d 100644 --- a/packages/analytics/addon/components/ca-report-preview.hbs +++ b/packages/analytics/addon/components/ca-report-preview.hbs @@ -30,7 +30,10 @@ {{#each this.data.value.fields as |row|}} {{#each row as |entry|}} - + {{entry.value}} {{/each}} @@ -39,7 +42,10 @@ {{#if this.data.value.summary}} {{#each this.data.value.summary as |summary|}} - + {{summary.value}} {{/each}} diff --git a/packages/analytics/addon/components/ca-report-preview.js b/packages/analytics/addon/components/ca-report-preview.js index 7814c552e..d8243f440 100644 --- a/packages/analytics/addon/components/ca-report-preview.js +++ b/packages/analytics/addon/components/ca-report-preview.js @@ -89,4 +89,7 @@ export default class CaReportPreviewComponent extends Component { // Default to string return "s"; } + + // cleaning needed because excel does not support carriage returns + cleanValue = (value) => value?.replaceAll(/\r/g, ""); } diff --git a/packages/analytics/addon/helpers/clean-text.js b/packages/analytics/addon/helpers/clean-text.js new file mode 100644 index 000000000..e69de29bb