Remove leading and trailing spaces from info.Producer and info.Creator when printing debug info in the console (bug 872827)

This commit is contained in:
Jonas Jenwald 2014-04-10 12:20:39 +02:00
parent 82e6018826
commit eb7f369c54

View File

@ -1102,8 +1102,8 @@ var PDFView = {
// Provides some basic debug information
console.log('PDF ' + pdfDocument.fingerprint + ' [' +
info.PDFFormatVersion + ' ' + (info.Producer || '-') +
' / ' + (info.Creator || '-') + ']' +
info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() +
' / ' + (info.Creator || '-').trim() + ']' +
(PDFJS.version ? ' (PDF.js: ' + PDFJS.version + ')' : ''));
var pdfTitle;