diff options
author | xengineering <me@xengineering.eu> | 2024-03-06 20:58:36 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-03-06 21:42:50 +0100 |
commit | c48ddf4279ee38a9c06bed38e307ac4fd949d3ec (patch) | |
tree | 465d18441af9347523aa41d9b891c55095a3ee22 | |
parent | e3b50645b27698c8676b1ffcd4c73c545d14d94d (diff) | |
download | ceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.tar ceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.tar.zst ceres-c48ddf4279ee38a9c06bed38e307ac4fd949d3ec.zip |
view: Display multiline notes correctly
-rw-r--r-- | view/html/recipe.html | 2 |
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> |