Skip to content

WW-5731 fix(jasperreports7): stop using the field delimiter as the CSV record delimiter - #1921

Merged
lukaszlenart merged 1 commit into
mainfrom
WW-5731-csv-record-delimiter
Sep 12, 2026
Merged

WW-5731 fix(jasperreports7): stop using the field delimiter as the CSV record delimiter#1921
lukaszlenart merged 1 commit into
mainfrom
WW-5731-csv-record-delimiter

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Fixes WW-5731

JasperReport7CsvExporterProvider set the configured delimiter as both the field and the record delimiter, so every CSV export came out as a single line with the rows joined by , (or whatever struts.jasperReport7.csv.defaultDelimiter / JasperReport7Aware.getCsvDelimiter returned). Only the field delimiter is meant to be configurable — as in the 6.x plugin, which sets FIELD_DELIMITER alone — so the setRecordDelimiter call is dropped and JasperReports' default newline applies.

Test testCsvRecordsAreSeparatedByNewlines uses ; as the field delimiter and two rows; before the fix the export was Qux Report;Hello Foo Bar!;Hello Baz Qux!;, now it is three lines.

🤖 Generated with Claude Code

…V record delimiter

JasperReport7CsvExporterProvider set both the field and the record
delimiter to the configured delimiter, so every CSV export came out as
a single line with the rows joined by "," (or whatever
struts.jasperReport7.csv.defaultDelimiter / getCsvDelimiter returned).
Only the field delimiter is configurable, as in the 6.x plugin; records
are separated by JasperReports' default newline again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@lukaszlenart
lukaszlenart marked this pull request as ready for review September 12, 2026 09:58
@lukaszlenart
lukaszlenart merged commit 2cc6fa6 into main Sep 12, 2026
13 checks passed
@lukaszlenart
lukaszlenart deleted the WW-5731-csv-record-delimiter branch September 12, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant