Repository navigation
cortheon: keep a link when whitespace splits the attribute or the URL - #3006
Conversation
|
Thanks @ppardus. The resolve side is right: a tab or newline inside a link isn't part of it, a space stays, and the ends are trimmed (
test "a page link keeps its target when href is not the first href in the tag" {
var arena: std.heap.ArenaAllocator = .init(std.testing.allocator);
defer arena.deinit();
const a = arena.allocator();
const got = try hrefs(a, "<a hreflang=\"de\" href=\"https://b.org/de\">de</a> <a title=\"href\" href=\"/t\">t</a> <a class=\"nav-href\" href = \"/n\">n</a>", 10, null);
try std.testing.expectEqual(@as(usize, 3), got.len);
try std.testing.expectEqualStrings("https://b.org/de", got[0]);
try std.testing.expectEqualStrings("/t", got[1]);
try std.testing.expectEqualStrings("/n", got[2]);
}A loop over The CHANGELOG line is ours to add at landing.
|
|
Thanks @ppardus. We'll add the CHANGELOG line and land it.
|
e5b82c2 to
d2ea9b4
Compare
|
Thank you @ppardus. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @ppardus! This is in TensorFold 1.2.8, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.8
|
What this changes
Cortheon drops a page link, or resolves the wrong address, when whitespace sits around
hrefor inside the URL.A page link written
href ="…"is kept.A page link whose quote follows a newline after
=is kept.An unquoted page link ends at a tab, CR or LF.
A link whose ends are a newline still resolves as that link.
A tab or newline wrapped inside a link is not part of the URL. A space inside the URL stays.
Issue: n/a. Host-testable link whitespace bugs, with no open issue.
Stacked on: main.
atc overlap --json: n/a.atcis not installed here.Receipt
n/a. This does not reach inference: no lane, sampler, precision or prompt-processing change. Metal and CUDA were not run.