Fixed formatting

This commit is contained in:
Bartek Kryza
2023-01-07 12:32:46 +01:00
parent f1f6051cf7
commit a1a9d4ae99
4 changed files with 6 additions and 5 deletions

View File

@@ -197,7 +197,8 @@ inja::json generator<C, D>::element_context(const E &e) const
if (file.is_absolute() && ctx.template contains("git"))
#endif
relative_path =
std::filesystem::relative(file, ctx["git"]["toplevel"]).string();
std::filesystem::relative(file, ctx["git"]["toplevel"])
.string();
ctx["element"]["source"]["path"] = relative_path;
ctx["element"]["source"]["full_path"] = file.string();