guh
This commit is contained in:
parent
c4daa7886d
commit
f93b278c37
2 changed files with 3 additions and 3 deletions
|
@ -30,11 +30,11 @@ app.get("/view/:paste", async function (req, res) {
|
|||
}
|
||||
|
||||
var converter = new Converter();
|
||||
paste = converter.makeHtml(paste);
|
||||
var text = converter.makeHtml(paste.data);
|
||||
|
||||
res.render("view", {
|
||||
bot,
|
||||
paste
|
||||
text
|
||||
});
|
||||
return;
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
Validate important information.
|
||||
</div>
|
||||
|
||||
<% for(line of paste.data.split("\n")) { if(line.trim() == "") continue; %><p><%-line.trim()%></p><% } %>
|
||||
<% for(line of text.split("\n")) { if(line.trim() == "") continue; %><p><%-line.trim()%></p><% } %>
|
||||
<br>
|
||||
</div>
|
||||
<%- include("../partials/footer.ejs"); %>
|
||||
|
|
Loading…
Reference in a new issue