Closed sixtyfive closed 2 years ago
When I right-click on a cell, I can do Format Cells > Border, but there's no "padding" option on that dialog. So I'm not sure what this request is about.
I have no idea where did this picture come from. Here's the dialog that I have:
What you can do is open a blank workbook, set padding in any single cell and send that workbook to me so I can investigate.
Interesting, That picture came from LibreOffice Calc. I didn't think that it would have any features that Microsoft Excel doesn't have. But doing what you asked and then saving as .xlsx, closing, and opening the document again causes the padding to be lost. Setting the padding, daving as .ods, closing, and opening the document again causes it to be retained. The I have my answer. Thank you, Wesha!
It feels like cell padding is not supported in the SpreadsheetML
specification, so it cannot be supported by rubyXL
. If I'm wrong, feel free to correct me.
I agree.
Is there any way (or if not, would it be feasible to implement such a thing?) to set a cell's top/bottom/lef/right padding in millimeters like can be done from within Excel or Calc (right mouse button on cell(s) > "Format cell" > "Borders" > "Padding")? For example
worksheet.get_padding(side = nil)
andworksheet.change_padding(row, col, side = nil)
, where aside
ofnil
would mean "all sides at once")...