Skip to content

Commit

Permalink
encode number cells with invalid numbers as "" instead of "ERR"
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Feb 7, 2024
1 parent 4371266 commit 7065ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spreadsheet.elm
Expand Up @@ -697,7 +697,7 @@ encode_cell (range,cell) =
, ("v", case cell.type_ of
NumberCell -> case String.toFloat cell.content of
Just n -> JE.float n
Nothing -> JE.string "ERR"
Nothing -> JE.string ""
StringCell -> JE.string cell.content
)
]
Expand Down

0 comments on commit 7065ad0

Please sign in to comment.