Skip to content

Linebreaks are not recognized in rendered text in a cell #2891

Closed
@nimble-123

Description

@nimble-123

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions