Skip to content

Commit 00b2265

Browse files
authored
fixed code display on windows (#229)
* fixed code display on windows * version bump * fmt
1 parent ae84047 commit 00b2265

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Term"
22
uuid = "22787eb5-b846-44ae-b979-8e399b8463ab"
33
authors = ["FedeClaudi <federicoclaudi@protonmail.com> and contributors"]
4-
version = "2.0.4"
4+
version = "2.0.5"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/highlight.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function load_code_and_highlight(path::AbstractString, lineno::Int; δ::Int = 3)
116116
code = split(join(code), "\n")
117117

118118
# clean
119-
clean(line) = replace(line, " {/ }" => "")
119+
clean(line) = replace(line, " {/ }" => "", '\r' => "")
120120
codelines = clean.(code) # [10-δ:10+δ]
121121
linenos = linenos # [10-δ:10+δ]
122122

src/style.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ function MarkupStyle(markup)
6767
style.color = get_color(code)
6868
elseif is_background(code)
6969
style.background = get_color(code; bg = true)
70-
# elseif code != "nothing"
71-
# @debug "Code type not recognized: $code"
70+
# elseif code != "nothing"
71+
# @debug "Code type not recognized: $code"
7272
end
7373
end
7474
return style

0 commit comments

Comments
 (0)