aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}}">