aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-30 09:33:55 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-30 09:33:55 +0200
commit120a0812d599860a8168b53ba4ce007c9fb94d1b (patch)
tree06c4ad3f3c61ebebc3d584c75cb426883f8a9129
parentfac1b3cf5455b0d4302fef0d1d10443692d7b80c (diff)
Changed text to <pre>
-rw-r--r--assets/main.css1
-rw-r--r--t_idea/index.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/assets/main.css b/assets/main.css
index f6869bb..b3d6710 100644
--- a/assets/main.css
+++ b/assets/main.css
@@ -22,6 +22,7 @@ body {
margin-top: .5em;
font-family: monospace;
font-size: 1.25em;
+ white-space: pre-wrap;
}
.creation {
margin-bottom: .3em;
diff --git a/t_idea/index.html b/t_idea/index.html
index afd9787..f845628 100644
--- a/t_idea/index.html
+++ b/t_idea/index.html
@@ -28,7 +28,7 @@
{{ range .Ideas }}
<div class="idea">
<h2 class="title">{{.Title}}</h2>
- <p class="text">{{.Text}}</p>
+ <pre class="text">{{.Text}}</pre>
<p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p>
<form action="/idea/delete/" method="post">
<input type="hidden" name="title" value="{{.Title}}">