{"action":"created","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/368","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/368/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/368/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/368","id":60312930,"number":368,"title":"Problems with linebreak within a cell","user":{"login":"seven21","id":4322863,"avatar_url":"https://avatars.githubusercontent.com/u/4322863?v=3","gravatar_id":"","url":"https://api.github.com/users/seven21","html_url":"https://github.com/seven21","followers_url":"https://api.github.com/users/seven21/followers","following_url":"https://api.github.com/users/seven21/following{/other_user}","gists_url":"https://api.github.com/users/seven21/gists{/gist_id}","starred_url":"https://api.github.com/users/seven21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seven21/subscriptions","organizations_url":"https://api.github.com/users/seven21/orgs","repos_url":"https://api.github.com/users/seven21/repos","events_url":"https://api.github.com/users/seven21/events{/privacy}","received_events_url":"https://api.github.com/users/seven21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T08:40:40Z","updated_at":"2015-03-09T10:55:09Z","closed_at":null,"body":"Hello,\r\nI'm trying to format a cell that I can add linebreaks within a single cell.\r\nTried it with formatting with $sheet->setColumnFormat(array('A' => '@')); and added \"\\r\\n\" to my text. But I always need to select the linebreak option in Excel after generating that I can see the linebreaks.\r\n\r\nIn PHP Excel it worked with e.g. $objPHPExcel->getActiveSheet()->getStyle('A1')->getAlignment()->setWrapText(true);\r\n\r\nIs there any way to do this in Laravel-Excel?\r\n\r\nThanks for your help."},"comment":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/comments/77833360","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/368#issuecomment-77833360","issue_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/368","id":77833360,"user":{"login":"patrickbrouwers","id":7728097,"avatar_url":"https://avatars.githubusercontent.com/u/7728097?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickbrouwers","html_url":"https://github.com/patrickbrouwers","followers_url":"https://api.github.com/users/patrickbrouwers/followers","following_url":"https://api.github.com/users/patrickbrouwers/following{/other_user}","gists_url":"https://api.github.com/users/patrickbrouwers/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickbrouwers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickbrouwers/subscriptions","organizations_url":"https://api.github.com/users/patrickbrouwers/orgs","repos_url":"https://api.github.com/users/patrickbrouwers/repos","events_url":"https://api.github.com/users/patrickbrouwers/events{/privacy}","received_events_url":"https://api.github.com/users/patrickbrouwers/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T10:55:09Z","updated_at":"2015-03-09T10:55:09Z","body":"Hey,\r\n\r\nYou have two possible ways to go:\r\n\r\n*CSS*:\r\n\r\n```\r\n<td style=\"wrap-text:true;\"></td>\r\n```\r\n\r\n*PHP**\r\n```php\r\n$excel->function('Sheet name', function($sheet) {\r\n\r\n    $sheet->getStyle('A1')->getAlignment()->setWrapText(true);\r\n\r\n});\r\n```"}}