Skip to content
New issue

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

Bug about GetCellRichText #1213

Closed
CHANTXU64 opened this issue Apr 28, 2022 · 1 comment
Closed

Bug about GetCellRichText #1213

CHANTXU64 opened this issue Apr 28, 2022 · 1 comment
Labels
confirmed This issue can be reproduced
Projects

Comments

@CHANTXU64
Copy link
Contributor

Description

Create test_rich_text.xlsx in Excel,Sheet1:

A
richtext
a
b
c
d
e
f
TRUE
FALSE

Run:

func TestRichText (t *testing.T) {
  file, err := excelize.OpenFile("test_rich_text.xlsx")
  if err != nil {
    fmt.Println(err)
  }
  sheet := "Sheet1"
  for i := 0; i < 9; i++ {
    cell, _ := excelize.CoordinatesToCellName(1, i + 1)
    richtext, err := file.GetCellRichText(sheet, cell)
    if err != nil {
      fmt.Println(err)
    }
    fmt.Println(richtext)
  }
  file.Close()
}

Describe the results you received:

[{<nil> TEST} {0x140005b5950 rich text}]
[]
[]
[]
[]
[]
[]
[]
[{<nil> TEST} {0x140005b59a0 rich text}]

Describe the results you expected:

[{<nil> TEST} {0x140005b5950 rich text}]
[]
[]
[]
[]
[]
[]
[]
[]

Output of go version:

go version go1.18.1 darwin/arm64

Excelize version or commit ID:

version 2.6.0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
macOS: Microsoft Excel

@xuri xuri added confirmed This issue can be reproduced in progress Working in progress labels Apr 29, 2022
@xuri xuri closed this as completed in 0f93bd2 Apr 29, 2022
@xuri
Copy link
Member

xuri commented Apr 29, 2022

Thanks for your issue, I have fixed it. Please upgrade to the master branch code, and this patch will be released in the next version.

@xuri xuri removed the in progress Working in progress label Apr 29, 2022
@xuri xuri added this to Bugfix in v2.6.1 Jul 7, 2022
xuri added a commit to carbin-gun/excelize that referenced this issue Oct 9, 2022
xuri added a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue can be reproduced
Projects
No open projects
v2.6.1
Bugfix
Development

No branches or pull requests

2 participants