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
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ gleam_stdlib = "~> 0.39"
[dev-dependencies]
gleeunit = "~> 1.0"
simplifile = "~> 0.3"
filepath = "~> 0.1"
filepath = ">= 1.0.0 and < 2.0.0"
8 changes: 4 additions & 4 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# You typically do not need to edit this file

packages = [
{ name = "filepath", version = "0.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "FC1B1B29438A5BA6C990F8047A011430BEC0C5BA638BFAA62718C4EAEFE00435" },
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
{ name = "filepath", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "67A6D15FB39EEB69DD31F8C145BB5A421790581BD6AA14B33D64D5A55DBD6587" },
{ name = "gleam_stdlib", version = "0.54.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "723BA61A2BAE8D67406E59DD88CEA1B3C3F266FC8D70F64BE9FEC81B4505B927" },
{ name = "gleeunit", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "0E6C83834BA65EDCAAF4FE4FB94AC697D9262D83E6F58A750D63C9F6C8A9D9FF" },
{ name = "simplifile", version = "0.4.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "8F3C94B83F691CCFACD784A4D7C1F7E5A0437D93341549B908EE3B32E3477447" },
]

[requirements]
filepath = { version = "~> 0.1" }
filepath = { version = ">= 1.0.0 and < 2.0.0" }
gleam_stdlib = { version = "~> 0.39" }
gleeunit = { version = "~> 1.0" }
simplifile = { version = "~> 0.3" }
6 changes: 3 additions & 3 deletions src/jot.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,11 @@ fn parse_code(in: Chars, count: Int) -> #(Inline, Chars) {
// supposed to not include that space. This is so inline code can start
// with a backtick.
let content = case string.starts_with(content, " `") {
True -> string.trim_left(content)
True -> string.trim_start(content)
False -> content
}
let content = case string.ends_with(content, "` ") {
True -> string.trim_right(content)
True -> string.trim_end(content)
False -> content
}
#(Code(content), in)
Expand Down Expand Up @@ -1206,7 +1206,7 @@ fn inlines_to_html(
|> inline_to_html(inline, refs)
|> inlines_to_html(rest, refs)

GeneratedHtml(..html, html: string.trim_right(html.html))
GeneratedHtml(..html, html: string.trim_end(html.html))
}
}
}
Expand Down