Rails Axlsx New Line in Cell -
is there way can add new line cell using axlsx gem in rails?
so replicating in excel once enter value can alt + enter add additional text new line in cell. tried
sheet.add_row ["testing cell row 1" + \r\n + "testing cell row 2"]
but throws error.
for forced line feed use "\x0a" (breaks between paragraphs.)
if want both carriage return , line feed, use "\x0d\x0a".
Comments
Post a Comment