Commit 7aaf3edc authored by Joshua Priestley's avatar Joshua Priestley
Browse files

Markdown files now formatted correctly

parent 4e89cbc7
......@@ -39,14 +39,13 @@ public class MarkdownResultPage implements Page {
File markdown = new File(query + ".md");
// Header
FileWriter writer = new FileWriter(markdown);
writer.write("<h1>" + query + "<h1>");
writer.write("-------------------------------------------------<br>");
writer.write("# " + query.toUpperCase() + "\n\n");
// Content
if (answer == null || answer.isEmpty()) {
writer.write("Sorry, we did not understand your query.\n");
} else {
writer.write("<p>" + answer + "</p>");
writer.write(answer);
}
writer.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment