Add file (line/col) info to ref/relref errors

See #5371
This commit is contained in:
Bjørn Erik Pedersen 2018-11-01 11:28:30 +01:00
parent 33a7b36fd4
commit 1d18eb0574
22 changed files with 412 additions and 297 deletions

View file

@ -1056,9 +1056,9 @@ String: {{ . | safeHTML }}
assert.Equal(1, len(s.RegularPages))
builder.AssertFileContent("public/page/index.html",
"File: content/page.md",
filepath.FromSlash("File: content/page.md"),
"Line: 7", "Column: 4", "Offset: 40",
"String: content/page.md:7:4",
filepath.FromSlash("String: \"content/page.md:7:4\""),
)
}