[Koha-bugs] [Bug 34043] Improve translation of CSV header templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 4 14:35:15 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34043

--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 155197
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155197&action=edit
Bug 34043: Remove incorrect spaces

This bug looked cool and safe, but tests highlighted that the
(introduced) newlines were translated into spaces, which is not correct
in the CSV format (i.e. q{"Column 1" , "Column 2"} is not really
correct).

Also, the double quotes were forcibly introduced (semi-correct) but the
tests weren't adjusted.

We should really stop using templates for generating CSV, and use a
library for the task instead of manually crafting them. But that's for
another bug report.

This patch:

* Removes extra spaces in TT-generated CSV headers
* Adjusts the tests to the new format introduced by this report

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list