Skip to content

Commit

Permalink
fix error for \title twice in inline section
Browse files Browse the repository at this point in the history
fixes #36

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
  • Loading branch information
vito committed Feb 7, 2021
1 parent 286815a commit f7b4506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baselit/plugin.go
Expand Up @@ -44,12 +44,12 @@ func (plugin Plugin) Title(title booklit.Content, tags ...string) error {
if plugin.section.Title != booklit.Empty {
return booklit.TitleTwiceError{
TitleLocation: booklit.ErrorLocation{
FilePath: plugin.section.Path,
FilePath: plugin.section.FilePath(),
NodeLocation: plugin.section.TitleLocation,
Length: len("\\title"),
},
ErrorLocation: booklit.ErrorLocation{
FilePath: plugin.section.Path,
FilePath: plugin.section.FilePath(),
NodeLocation: plugin.section.InvokeLocation,
Length: len("\\title"),
},
Expand Down

0 comments on commit f7b4506

Please sign in to comment.