Skip to content

Commit

Permalink
Merge pull request #78 from ArnoSaine/main
Browse files Browse the repository at this point in the history
Fix multiline string value cell width
  • Loading branch information
LuisEnMarroquin authored Oct 20, 2023
2 parents c00c1c9 + a77e1c3 commit 5ec4791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main-library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const getWorksheetColumnIds = (worksheet: WorkSheet): string[] => {

const getObjectLength = (object: unknown): number => {
if (typeof object === "string") {
return object.length
return Math.max(...object.split("\n").map((string) => string.length))
}
if (typeof object === "number") {
return object.toString().length
Expand Down

0 comments on commit 5ec4791

Please sign in to comment.