Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore line-breaks between operator and digit in Lexer.getNumber #8359

Merged
merged 1 commit into from
May 3, 2017
Merged

Ignore line-breaks between operator and digit in Lexer.getNumber #8359

merged 1 commit into from
May 3, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 2, 2017

This is consistent with the behaviour in Adobe Reader (and PDFium), and it fixes the display of page 30 in https://bug1354114.bmoattachments.org/attachment.cgi?id=8855457 (taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1354114).

The patch also makes the error message for invalid numbers slightly more useful, by including the charCode as well. (Having that information available would have reduced the time spent on debugging the PDF file above.)

This is consistent with the behaviour in Adobe Reader (and PDFium), and it fixes the display of page 30 in https://bug1354114.bmoattachments.org/attachment.cgi?id=8855457 (taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1354114).

The patch also makes the `error` message for invalid numbers slightly more useful, by including the charCode as well. (Having that information available would have reduced the time spent on debugging the PDF file above.)
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/69463d4f186ed5f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/69463d4f186ed5f/output.txt

Total script time: 1.56 mins

Published

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/24d98ca8f2e0e63/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/5b52884f4b1cb5d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/5b52884f4b1cb5d/output.txt

Total script time: 21.02 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2017

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/24d98ca8f2e0e63/output.txt

Total script time: 60.00 mins

@yurydelendik
Copy link
Contributor

/botio-linux test

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://54.67.70.0:8877/ceadaa948d0132e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/ceadaa948d0132e/output.txt

Total script time: 19.37 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux)


Received

Command cmd_makeref from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/afeae840a96d8d6/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Windows)


Received

Command cmd_makeref from @yurydelendik received. Current queue size: 0

Live output at: http://54.215.176.217:8877/09ba95a8dda735c/output.txt

@yurydelendik yurydelendik merged commit 74ba303 into mozilla:master May 3, 2017
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/09ba95a8dda735c/output.txt

Total script time: 20.52 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/afeae840a96d8d6/output.txt

Total script time: 31.85 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the Lexer-getNumber-ignore-line-breaks branch May 3, 2017 15:47
@Snuffleupagus Snuffleupagus restored the Lexer-getNumber-ignore-line-breaks branch May 3, 2017 15:53
@yurydelendik
Copy link
Contributor

/botio-linux test

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://54.67.70.0:8877/bfa6e045b7adaee/output.txt

@yurydelendik
Copy link
Contributor

/botio-linux makeref

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @yurydelendik received. Current queue size: 1

Live output at: http://54.67.70.0:8877/811e74cad917642/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/bfa6e045b7adaee/output.txt

Total script time: 19.33 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 3, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/811e74cad917642/output.txt

Total script time: 18.56 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the Lexer-getNumber-ignore-line-breaks branch May 3, 2017 16:34
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…nore-line-breaks

Ignore line-breaks between operator and digit in `Lexer.getNumber`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants