Skip to content

Commit

Permalink
cli: respect format target when rendering fake literate
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Feb 21, 2024
1 parent bed607f commit 286e718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli-console/src/main/java/org/aya/cli/console/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private int doFakeLiterate() throws IOException {
new FlclParser(reporter, file).computeAst());
// Garbage code
var setup = info.backendOpts(false);
var output = renderOptions.render(RenderOptions.OutputTarget.LaTeX, doc, setup);
var output = renderOptions.render(prettyFormat.target, doc, setup);
if (outputPath != null) FileUtil.writeString(outputPath, output);
else System.out.println(output);
return 0;
Expand Down

0 comments on commit 286e718

Please sign in to comment.