hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 195773cf1c2ab43cb937f8d54208ef5a31b63b2b
parent d0f4baaafc4f4f475f9000a5bd4e9910b94a679f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 16 Jan 2023 14:15:35 +0100

Revert "haredoc: make submodules reference relative"

This patch has caused numerous issues and needs to be revisited later.

This reverts commit 138916299ef60d413ed6fa22b4ddcfd6f0d53ac9.

Diffstat:
Mcmd/haredoc/html.ha | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -133,10 +133,12 @@ fn emit_html(ctx: *context) (void | error) = { }; fmt::fprintln(ctx.out, "<ul class='submodules'>")?; for (let i = 0z; i < len(submodules); i += 1) { - const submodule = submodules[i]; + let submodule = submodules[i]; + let path = path::join("/", identpath, submodule); + defer free(path); fmt::fprintf(ctx.out, "<li><a href='")?; - html_escape(ctx.out, submodule)?; + html_escape(ctx.out, path)?; fmt::fprintf(ctx.out, "'>")?; html_escape(ctx.out, submodule)?; fmt::fprintfln(ctx.out, "</a></li>")?;