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 { ...@@ -39,14 +39,13 @@ public class MarkdownResultPage implements Page {
File markdown = new File(query + ".md"); File markdown = new File(query + ".md");
// Header // Header
FileWriter writer = new FileWriter(markdown); FileWriter writer = new FileWriter(markdown);
writer.write("<h1>" + query + "<h1>"); writer.write("# " + query.toUpperCase() + "\n\n");
writer.write("-------------------------------------------------<br>");
// Content // Content
if (answer == null || answer.isEmpty()) { if (answer == null || answer.isEmpty()) {
writer.write("Sorry, we did not understand your query.\n"); writer.write("Sorry, we did not understand your query.\n");
} else { } else {
writer.write("<p>" + answer + "</p>"); writer.write(answer);
} }
writer.close(); writer.close();
......
Supports Markdown
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