We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a2e65 commit 98c217aCopy full SHA for 98c217a
src/CosReader.jl
@@ -3,6 +3,8 @@ get_pdfcontentops
3
4
import Base: peek
5
6
+_error(msg, io) = error(msg*" at $(position(io)) found $(_peekb(io))")
7
+
8
#This function is for testing only
9
function parse_data(filename)
10
ps=util_open(filename,"r")
@@ -239,11 +241,11 @@ end
239
241
function ensure_line_feed_eol(ps::IO)
240
242
c = advance!(ps)
243
if (c == RETURN)
- skipv(ps,LINE_FEED)
244
+ skipv(ps,LINE_FEED)
245
elseif (c == LINE_FEED)
- return c
246
+ return c
247
else
- _error(E_UNEXPECTED_CHAR)
248
+ _error(E_UNEXPECTED_CHAR, ps)
249
end
250
251
0 commit comments