Skip to content

Commit

Permalink
How did this get switched up
Browse files Browse the repository at this point in the history
  • Loading branch information
strawmelonjuice committed Jan 11, 2024
1 parent 1c65d8a commit b496f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contentservers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub(crate) fn p_content(pgid: String) -> String {
return match post.content.markup_type.to_owned().to_lowercase().as_str() {
"html" | "webfile" => {
format!(
"<div><pre>{}</pre></div>",
"<div>{}</div>",
rawcontent
.replace('&', "&amp;")
.replace('<', "&lt;")
Expand All @@ -186,7 +186,7 @@ pub(crate) fn p_content(pgid: String) -> String {
)
}
"text" | "raw" => {
format!("<div>{rawcontent}</div>")
format!("<div><pre>{rawcontent}</pre></div>")
}
"markdown" | "md" => {
format!(
Expand Down

0 comments on commit b496f1a

Please sign in to comment.