Merge pull request #4589 from Snuffleupagus/bug-872827

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:
Yury Delendik 2014-04-10 16:32:09 -05:00
commit 79f82b0fae

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;