Keep a template's table in one field, tableSite
This commit is contained in:
+2
-2
@@ -81,8 +81,8 @@ func linkRefs(root map[string]node) error {
|
||||
// linkTemplate resolves t's references in category, "" for an inline template, and
|
||||
// compiles its format against them.
|
||||
func linkTemplate(folder []string, path, category string, t *template, root map[string]node) error {
|
||||
if t.cell.table != nil {
|
||||
path = fmt.Sprintf("%s, line %d", path, t.cell.row+2)
|
||||
if t.site.table != nil && t.site.row != formatRow {
|
||||
path = fmt.Sprintf("%s, line %d", path, t.site.row+2)
|
||||
}
|
||||
link, err := t.resolveLink(folder, path, category, root)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user