Closed
Description
Hi,
i want to create a table and have some linebreaks in a cell. But in the rendered pdf document these linebreaks are not recognized anymore.
const aHeaders = [{
id: "Field",
name: "Field",
prompt: "Field",
width: 65,
align: "left",
padding: 0
}, {
id: "Entry",
name: "Entry",
prompt: "Entry",
width: 150,
align: "left",
padding: 0
}];
let aData = [];
aData.push({
Field: "Field 1",
Entry: "Title: Sed fermentum, mi et tristique ullamcorper" + "\n" +
"Priority: high" + "\n" +
"Description: Sed fermentum, mi et tristique ullamcorper"
});
doc.table(14, 50, aData, aHeaders, {
fontSize: 10
});
Is this a bug or am i doing something wrong?
Any help would be much appreciated.