Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

line breaks within a cell #93

Open
rajeev13 opened this issue Oct 17, 2017 · 3 comments
Open

line breaks within a cell #93

rajeev13 opened this issue Oct 17, 2017 · 3 comments

Comments

@rajeev13
Copy link

Thanks for your effort and support.
how can we add line breaks within cell itself.

@smrrrazu
Copy link

I have same question.

@rajeev13
Copy link
Author

Hi Travis Clarke,

The reference #70 is about new line creating new row,but i am trying the line break in a particular cell itself .

suggested method didn't helped me.

Thank for reply.

@clarketm
Copy link
Owner

clarketm commented Oct 27, 2017

@rajeev13

You are correct – my mistake. I deleted my comment as soon as I realized it was invalid. XLSX seems to be the exception to the fix delineated in #70 .

There are some quirks with Excel related to consistency and which escape characters are interpreted as linefeed and carriage return across platforms (in open xml format). I may be able to achieve this with a cell-style (if supported), but in the meantime, a workaround is to use standard linefeeds in the HTML (&#10;, <br>, or literal return) and enable wrap text in Excel:

excel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants