changed resultFormatter logic, italics if format is PDF