mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #267] internal hyperlink location not set #212
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#212
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @mewalig on GitHub (Jan 16, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/267
Originally assigned to: @jmcnamara on GitHub.
calling
worksheet_write_url()with an internal target such as:"internal:#'my target worksheet'!A1"
the link location was being set to an empty string, so the output xlsx cell contained a link that appeared to be clickable, but upon click, did not do anything. This issue did not seem to exist a few months ago, so may have been introduced from a recent change.
Making the following change to src/worksheet.c around line 4888 seemed to fix the problem, though I'm not sure this doesn't cause other problems:
@jmcnamara commented on GitHub (Jan 16, 2020):
Thanks. Just to be clear can you add a small complete C program that demonstrates the issue and I'll look at it.
@jmcnamara commented on GitHub (Jan 16, 2020):
Also is it valid to have # at the start of the link like that? I don't think it is. If it worked before it probably shouldn't have.
@mewalig commented on GitHub (Jan 17, 2020):
Oh, should it instead be called as follows?
worksheet_write_url(ws, "internal:'my target worksheet'!A1")
? If so we'll just do that. Not sure why we thought we needed the "#" before
Would it be possible to add an example (or a reference thereto) of an internal hyperlink to https://libxlsxwriter.github.io/hyperlinks_8c-example.html?
@jmcnamara commented on GitHub (Jan 17, 2020):
Yes. That is right.
I'm not sure it make sense there but there are several examples in the API docs:
https://libxlsxwriter.github.io/worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1