mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #37] Feature request: worksheet_write_rich_string() #32
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#32
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 @jmcnamara on GitHub (Dec 10, 2015).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/37
Originally assigned to: @jmcnamara on GitHub.
Add
worksheet_write_rich_string()function like the Python XlsxWriter Worksheet methodwrite_rich_string().See https://xlsxwriter.readthedocs.io/example_rich_strings.html
Add +1 as a comment to vote for this feature and to get an update when it is implemented.
If you would like to make a donation to accelerate this feature you can do so via PayPal or contact me directly. Currently $0 of $500.
@ghost commented on GitHub (Jul 18, 2018):
+1
@guyverthree commented on GitHub (Aug 1, 2018):
+1
@jmcnamara commented on GitHub (Aug 6, 2018):
Since I've had a few requests about this I've added a note about making donations to prioritize this feature.
@jmcnamara commented on GitHub (Sep 29, 2018):
There is now working code for this feature on the rich_strings branch.
It still needs parameter validation and documentation before it is merged up to master but the core API and functionality is complete. Here is an example from the branch:
And the output:
The key idea is to split the string into to fragments that are preceded by the format. If the format is
NULLthen default formatting is applied.The API is a little clunky, i.e., having to create a
lxw_rich_string_tuple **with the fragments) but that is suitable for wrapping in small user defined functions suitable to the data.If you want to try it in advance let me know how you get on. All the tests are ported and passing.
@jmcnamara commented on GitHub (Sep 30, 2018):
Added docs: https://github.com/jmcnamara/libxlsxwriter/blob/rich_strings/include/xlsxwriter/worksheet.h#L1338
@jmcnamara commented on GitHub (Oct 1, 2018):
Added in version 0.8.3: https://libxlsxwriter.github.io/changes.html