We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the length of a sheetname is larger than 20 and it is a multibyte string, XLSX.readxlsx raises StringIndexError.
XLSX.readxlsx
StringIndexError
julia> using XLSX f = "sample.xlsx" XLSX.readxlsx(f) XLSXFile("sample.xlsx") containing 18 Worksheets sheetname size range ------------------------------------------------- ERROR: StringIndexError: invalid index [20], valid nearby indices [19]=>'日', [22]=>'本'
The bug, at workbook.jl#L76, can be fixed like
name = s.name |> x -> length(x) > 20 ? join(collect(x)[1:20])*"…" : x # x[collect(eachindex(x))[1:20]] may be better
, however, it would print an undesired length string like
sheetname size range ------------------------------------------------- あいうえおかきくけこさしすせそなにぬねの_2022… 133x34 B1:AI133
The text was updated successfully, but these errors were encountered:
Fix for felipenoris#202
b58f509
Fix for #202 (#211)
20b6734
* Fix for #202 * remove redundancy
No branches or pull requests
When the length of a sheetname is larger than 20 and it is a multibyte string,
XLSX.readxlsx
raisesStringIndexError
.The bug, at workbook.jl#L76, can be fixed like
, however, it would print an undesired length string like
The text was updated successfully, but these errors were encountered: