{"action":"opened","issue":{"url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/43","labels_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/43/comments","events_url":"https://api.github.com/repos/someatoms/jsPDF-AutoTable/issues/43/events","html_url":"https://github.com/someatoms/jsPDF-AutoTable/issues/43","id":89297554,"number":43,"title":"overflow: 'linebreak' option makes text overlap instead of breaking the line","user":{"login":"UlyssesAlves","id":2872102,"avatar_url":"https://avatars.githubusercontent.com/u/2872102?v=3","gravatar_id":"","url":"https://api.github.com/users/UlyssesAlves","html_url":"https://github.com/UlyssesAlves","followers_url":"https://api.github.com/users/UlyssesAlves/followers","following_url":"https://api.github.com/users/UlyssesAlves/following{/other_user}","gists_url":"https://api.github.com/users/UlyssesAlves/gists{/gist_id}","starred_url":"https://api.github.com/users/UlyssesAlves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UlyssesAlves/subscriptions","organizations_url":"https://api.github.com/users/UlyssesAlves/orgs","repos_url":"https://api.github.com/users/UlyssesAlves/repos","events_url":"https://api.github.com/users/UlyssesAlves/events{/privacy}","received_events_url":"https://api.github.com/users/UlyssesAlves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T13:41:33Z","updated_at":"2015-06-18T13:41:33Z","closed_at":null,"body":"I configured an autoTable with option overflow: 'linebreak', so that it would break the line when the text is wider than the column width, but instead of breaking the line, the text became overlaped, as can be seen in the image below:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2872102/8232415/efbfd1c8-15a5-11e5-9015-86583505162a.png)\r\n\r\nThis is my JavaScript code to generate the PDF with jsPDF-AutoTable:\r\n\r\n```javascript\r\nexportToPDF: function (title, columns, records, orientation) {\r\n            var doc = new jsPDF(orientation, 'pt');\r\n\r\n            // Formata as datas para DD/MM/YYYY.\r\n            for (var j = 0; j < columns.length; j++) {\r\n                var column = columns[j];\r\n\r\n                if (column.formatTextAsDate) {\r\n                    for (var i = 0; i < records.length; i++) {\r\n                        var dateField = column.key;\r\n                        var dateFieldOriginalValue = records[i][dateField];\r\n\r\n                        if (dateFieldOriginalValue != null && dateFieldOriginalValue != \"\") {\r\n                            records[i][dateField] = new Date(dateFieldOriginalValue).toLocaleDateString();\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n            var header = function (doc, pageCount, options) {\r\n                doc.setFontSize(20);\r\n                doc.text(title, options.margins.horizontal, 30);\r\n                doc.setFontSize(options.fontSize);\r\n            };\r\n\r\n            var cell = function (x, y, width, height, key, value, row, settings) {\r\n                var style = 'S';\r\n\r\n                doc.setLineWidth(0.1);\r\n                doc.setDrawColor(240);\r\n\r\n                doc.rect(x, y, width, height, style);\r\n\r\n                y += settings.lineHeight / 2 + doc.internal.getLineHeight() / 2 - 2.5;\r\n\r\n                debugger;\r\n                doc.text('' + value, x + settings.padding, y);\r\n\r\n                doc.setTextColor(50);\r\n            };\r\n\r\n            var totalPagesExpression = \"{total_pages_count_string}\"\r\n\r\n            var footer = function (doc, lastCellPos, pageCount, options) {\r\n                var footerText = \"Página \" + pageCount + \" de \" + totalPagesExpression;\r\n                doc.text(footerText, options.margins.horizontal, doc.internal.pageSize.height - 10);\r\n            };\r\n\r\n            doc.autoTable(columns, records, { renderHeader: header, renderCell: cell, renderFooter: footer, lineHeight: 12, fontSize: 8, overflow: 'linebreak' });\r\n            doc.putTotalPages(totalPagesExpression);\r\n            doc.save(title + '.pdf');\r\n        }\r\n    };\r\n```\r\n\r\nMaybe this is not a bug. In that case, what is wrong with my code? \r\n\r\nAny help will be appreciated."}}