jp (blog/preview): fixed guessSyntaxFromPath call

This commit is contained in:
Goffi 2018-06-01 12:02:09 +02:00
commit 720d23cd1c

View file

@ -561,7 +561,7 @@ class Preview(base.CommandBase):
else:
self.content_file_path = os.path.abspath(self.args.file)
self.syntax = self.guessSyntaxFromPath(sat_conf, self.content_file_path)
self.syntax = guessSyntaxFromPath(self.host, sat_conf, self.content_file_path)
# at this point the syntax is converted, we can display the preview