I'm using ArcGIS Javascript API 4.15 for a web application, I have a TextSymbol added on the map, when I try to print the map using PrintTask, it is not printing the text in the proper format.

the above image is of the map with textsymbol, and the print version is this.

it prints all the text in a single line.
here's my code:
var template = new this.esri.PrintTemplate()
template.exportOptions = {
width: screen.availWidth,
height: screen.availHeight,
dpi: 96 //dots per inch
};
template.format = "pdf"
template.layout ="A4Landscape"
var printParameters = new this.esri.PrintParameters();
printParameters.view = this.mapView;
printParameters.template = template;
var printTask = new this.esri.PrintTask({ url: this.printUrl });
printTask.execute(printParameters)