Writing to PRN adding non existent spaces. #3063
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3063
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Due to this line of code, when a cell value is shorten than 10 characters, the original value is changed, I see no reasoning for this behaviour.
That specifically applies to the Lotus Formatted Text (.PRN) format. For example, consider the following array of arrays:
The PRN version is
The referenced code adds whitespace, but admittedly it should do something a little more intelligent than adding space characters in a loop (prepend when the value is numeric). There is no official spec, so the current strategies are based on observing how Lotus 1-2-3 and Excel generate PRN files.
I have observed that when used with excel the export to PRN created by it respects the column widths that are set. Anyhow, feel free to close the issue if you find it appropriate.