diff --git a/Project.toml b/Project.toml index 230d6b06..6a192b9e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Term" uuid = "22787eb5-b846-44ae-b979-8e399b8463ab" authors = ["FedeClaudi and contributors"] -version = "2.0.4" +version = "2.0.5" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/highlight.jl b/src/highlight.jl index cdbbf040..51cf4a17 100644 --- a/src/highlight.jl +++ b/src/highlight.jl @@ -116,7 +116,7 @@ function load_code_and_highlight(path::AbstractString, lineno::Int; δ::Int = 3) code = split(join(code), "\n") # clean - clean(line) = replace(line, " {/ }" => "") + clean(line) = replace(line, " {/ }" => "", '\r' => "") codelines = clean.(code) # [10-δ:10+δ] linenos = linenos # [10-δ:10+δ] diff --git a/src/style.jl b/src/style.jl index 8f3d0b59..6bf6ad5d 100644 --- a/src/style.jl +++ b/src/style.jl @@ -67,8 +67,8 @@ function MarkupStyle(markup) style.color = get_color(code) elseif is_background(code) style.background = get_color(code; bg = true) - # elseif code != "nothing" - # @debug "Code type not recognized: $code" + # elseif code != "nothing" + # @debug "Code type not recognized: $code" end end return style