mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
templates: Suppress Handlebars automatic partial indentation.
Fixes #12795. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
07f93d58a3
commit
b1aa304c4a
@@ -14,7 +14,10 @@ module.exports.make_handlebars = () => {
|
||||
const name = "$" + path.relative(templates_path, filename);
|
||||
if (!compiled.has(name)) {
|
||||
compiled.add(name);
|
||||
hb.registerPartial(name, hb.compile(fs.readFileSync(filename, "utf-8"), { zjsFilename: filename }));
|
||||
hb.registerPartial(
|
||||
name,
|
||||
hb.compile(fs.readFileSync(filename, "utf-8"), { preventIndent: true, zjsFilename: filename })
|
||||
);
|
||||
}
|
||||
return name;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user