[Pkg-javascript-commits] [pdf.js] 63/141: Remove leading and trailing spaces from info.Producer and info.Creator when printing debug info in the console (bug 872827)
David Prévot
taffit at moszumanska.debian.org
Sat Apr 19 22:40:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit eb7f369c546c1f80d31b8e771ce72143030a8de2
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Thu Apr 10 12:20:39 2014 +0200
Remove leading and trailing spaces from info.Producer and info.Creator when printing debug info in the console (bug 872827)
---
web/viewer.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/viewer.js b/web/viewer.js
index ff57253..d7e8dc3 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list