summaryrefslogtreecommitdiff
path: root/view/html/recipe.html
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-03-06 20:58:36 +0100
committerxengineering <me@xengineering.eu>2024-03-06 21:42:50 +0100
commitc48ddf4279ee38a9c06bed38e307ac4fd949d3ec (patch)
tree465d18441af9347523aa41d9b891c55095a3ee22 /view/html/recipe.html
parente3b50645b27698c8676b1ffcd4c73c545d14d94d (diff)
downloadceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.tar
ceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.tar.zst
ceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.zip
view: Display multiline notes correctly
Diffstat (limited to 'view/html/recipe.html')
-rw-r--r--view/html/recipe.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/html/recipe.html b/view/html/recipe.html
index 356abda..985a4e1 100644
--- a/view/html/recipe.html
+++ b/view/html/recipe.html
@@ -10,7 +10,7 @@
<main>{{ if ne .Portions "" }}
<p>Portions: {{.Portions}}</p>{{end}}{{ if ne .Url "" }}
<p><a href="{{.Url}}">original recipe</a></p>{{end}}{{ if ne .Notes "" }}
- <p>{{.Notes}}</p>{{end}}
+ <p style="white-space: pre-line;">{{.Notes}}</p>{{end}}
<a href="/recipe/{{.Id}}?view=recipe-edit"><button>edit</button></a>
<a href="/recipe/{{.Id}}?view=recipe-confirm-deletion"><button style="background-color:red">delete</button></a>
</main>