Formatting + type hints

This commit is contained in:
Goffi 2026-04-27 15:45:40 +02:00
commit 610eac0718

View file

@ -972,9 +972,7 @@ class Preview(base.CommandBase, common.BaseEdit):
self.disp(_('File "{file}" doesn\'t exist!').format(file=self.args.file))
self.host.quit(C.EXIT_NOT_FOUND)
self.syntax = await guess_syntax_from_path(
self.host, self.content_file_path
)
self.syntax = await guess_syntax_from_path(self.host, self.content_file_path)
# at this point the syntax is converted, we can display the preview
preview_file = tempfile.NamedTemporaryFile(suffix=".xhtml", delete=False)