Loading markdownTools/processMDSpec.py +17 −18 Original line number Diff line number Diff line Loading @@ -315,8 +315,7 @@ def main(args=None): if format is None: format = 'yaml' match format: case 'json': if format == 'json': if args.frontMatterOutFile: if args.verbose: print(f'[green]Writing front matter as JSON to {args.frontMatterOutFile}', file=sys.stderr) Loading @@ -325,7 +324,7 @@ def main(args=None): json.dump(_frontMatter, f, indent=2) else: print(json.dumps(_frontMatter, indent=2)) case 'yaml': elif format == 'yaml': if args.frontMatterOutFile: if args.verbose: print(f'[green]Writing front matter as YAML to {args.frontMatterOutFile}', file=sys.stderr) Loading Loading
markdownTools/processMDSpec.py +17 −18 Original line number Diff line number Diff line Loading @@ -315,8 +315,7 @@ def main(args=None): if format is None: format = 'yaml' match format: case 'json': if format == 'json': if args.frontMatterOutFile: if args.verbose: print(f'[green]Writing front matter as JSON to {args.frontMatterOutFile}', file=sys.stderr) Loading @@ -325,7 +324,7 @@ def main(args=None): json.dump(_frontMatter, f, indent=2) else: print(json.dumps(_frontMatter, indent=2)) case 'yaml': elif format == 'yaml': if args.frontMatterOutFile: if args.verbose: print(f'[green]Writing front matter as YAML to {args.frontMatterOutFile}', file=sys.stderr) Loading