aboutsummaryrefslogtreecommitdiff
path: root/element_include.go
diff options
context:
space:
mode:
Diffstat (limited to 'element_include.go')
-rw-r--r--element_include.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/element_include.go b/element_include.go
index fc45b34..4b36314 100644
--- a/element_include.go
+++ b/element_include.go
@@ -44,7 +44,7 @@ func parseInclude(doc *Document, line []byte) (el *elementInclude) {
el.attrs.parseElementAttribute(line[start : start+end+1])
path = applySubstitutions(doc, path)
- el.fpath = filepath.Join(filepath.Dir(doc.fpath), string(path))
+ el.fpath = filepath.Join(filepath.Dir(doc.file), string(path))
el.content, err = os.ReadFile(el.fpath)
if err != nil {