Libraryless. Click here for Pure Java version (2609L/16K).
1 | sS formatCSVFileForExcel2(L<L> rows) { |
2 | S sep = "|"; // multi-character separator doesn't work with Excel |
3 | ret windowsLineBreaks("sep=" + sep + "\n" + mapToLines_rtrim(rows, row -> join(sep, map(row, col |
4 | -> replace(newLinesToSpaces(str(col)), sep, " "))))); |
5 | } |
Began life as a copy of #1029692
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029693 |
Snippet name: | formatCSVFileForExcel2 [dev.] |
Eternal ID of this version: | #1029693/3 |
Text MD5: | 07c3a3b117b72a86f17cc600a1ae33d8 |
Transpilation MD5: | d5c5fe42618f8bee4eccb82c29f7707c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-07 15:12:03 |
Source code size: | 269 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 234 |
Version history: | 2 change(s) |
Referenced in: | [show references] |