Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Minor fixes and cleanup - #1

Open
josharian wants to merge 5 commits into
rsc:masterfrom
josharian:nyt
Open

josharian wants to merge 5 commits into
rsc:masterfrom
josharian:nyt

Conversation

@josharian

Copy link
Copy Markdown
Collaborator

No description provided.

Josh Bleecher Snyder added 5 commits September 22, 2014 16:40
Generated by stringer.
Encountered parsing NYT crosswords.
Restoring from an empty graphics stack looks like
a mistake in the PDF, but other PDF readers
handle it fine, and ignoring it appears to
work correctly.

Encountered parsing NYT crosswords.
Some PDFs contain non-whitespace junk after the
%%EOF marker. Other PDF parsers handle it fine.

Encountered parsing NYT crosswords.

@odeke-em odeke-em left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And at the end, please squash the commits into one :)

Comment thread page.go
}
return c
default:
panic("bad content kind")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this panic here might cause undocumented and unexpected problems for users. I was using the package earlier on the bus back from school and wrote code that invoked p.Content() without explicitly checking the Kind(). Perhaps we can just make an explicit check for Array then let the contentForStream handle be the catch all?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.