This commit is contained in:
Ashley Graves 2024-10-15 15:15:56 +02:00
parent c4daa7886d
commit f93b278c37
2 changed files with 3 additions and 3 deletions

View file

@ -30,11 +30,11 @@ app.get("/view/:paste", async function (req, res) {
} }
var converter = new Converter(); var converter = new Converter();
paste = converter.makeHtml(paste); var text = converter.makeHtml(paste.data);
res.render("view", { res.render("view", {
bot, bot,
paste text
}); });
return; return;
}); });

View file

@ -12,7 +12,7 @@
Validate important information. Validate important information.
</div> </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> <br>
</div> </div>
<%- include("../partials/footer.ejs"); %> <%- include("../partials/footer.ejs"); %>