Skip to content

Commit

Permalink
preserve markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Apr 21, 2024
1 parent afdad16 commit 2d550de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void run() {
newText.put("userId", label1);

File f = new File("tmitocar/texts/" + label1 + "/"+ label1 + ".txt-cleaned.txt");
File f_send = new File("tmitocar/texts/" + label1 + "/"+ label1 + "-" + courseAndTask[0] + ".txt-cleaned.txt");
File f_send = new File("tmitocar/texts/" + label1 + "/"+ label1 + "-" + courseAndTask[1] + ".txt-cleaned.txt");
if (f.exists()) {
System.out.println("Get content from -cleaned.txt.");
newText.put("studentInput", readTxtFile("tmitocar/texts/" + label1 + "/"+ label1 + ".txt-cleaned.txt"));
Expand Down Expand Up @@ -530,7 +530,7 @@ public void run() {

System.out.println("Convert markdown to pdf.");
// store markdown as pdf
ProcessBuilder pb = new ProcessBuilder("pandoc", "comparison_" + label1 + "_vs_" + label2 + ".md" , "-o", "comparison_" + label1 + "_vs_" + label2 + ".pdf");
ProcessBuilder pb = new ProcessBuilder("pandoc", "comparison_" + label1 + "_vs_" + label2 + ".md" , "-o", "comparison_" + label1 + "_vs_" + label2 + ".pdf","--wrap=preserve");
pb.inheritIO();
pb.directory(new File("tmitocar"));
Process process2 = pb.start();
Expand Down

0 comments on commit 2d550de

Please sign in to comment.