mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #492] format_set_text_wrap has no effect on merged cells #383
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#383
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 @znakeeye on GitHub (Oct 20, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/492
Using
libxlsxwriter 1.1.9. See sample below. When merging the cells, the text wrapping does not work. Is this expected behavior? Is there a workaround?@jmcnamara commented on GitHub (Oct 20, 2025):
I am away from a computer atm but I'm going to guess that text wrap does work in a merged range because that is something that I've tested and I'm pretty sure there is an example in the examples directory that uses it. Is that the case? If you manually change the height is the text wrapped?
I'm also going to guess that what you are actually reporting is that the row height isn't automatically adjusted when there is a merged range that has a text wrap. If that is the case then that is the expected behavior.
The automatic height adjustment is done by Excel at runtime and can't be triggered from the file format. I'd suggest setting an explicit height for the merged cells.
@znakeeye commented on GitHub (Oct 20, 2025):
Yes, manually changing the height works. Just verified the behavior in Excel. It seems it doesn't auto-adjust the height for merged cells.
Thanks for the suggested workaround!