Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/LaTeXStrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ latexstring(args...) = latexstring(string(args...))
macro L_str(s, flags...) latexstring(s) end
macro L_mstr(s, flags...) latexstring(s) end

import Base: write, endof, getindex, sizeof, search, rsearch, isvalid, next, length, bytestring, IOBuffer, pointer
import Base: write, endof, getindex, sizeof, search, rsearch, isvalid, next, length, IOBuffer, pointer
@compat import Base.show

write(io::IO, s::LaTeXString) = write(io, s.s)
Expand All @@ -42,7 +42,11 @@ function show(io::IO, s::LaTeXString)
Base.print_quoted_literal(io, s.s)
end

bytestring(s::LaTeXString) = bytestring(s.s)
if isdefined(Base, :bytestring)
import Base: bytestring
bytestring(s::LaTeXString) = bytestring(s.s)
end

endof(s::LaTeXString) = endof(s.s)
next(s::LaTeXString, i::Int) = next(s.s, i)
length(s::LaTeXString) = length(s.s)
Expand Down
1 change: 0 additions & 1 deletion test/REQUIRE

This file was deleted.