]> littlesong.place Git - littlesongplace.git/commitdiff
Insert line breaks in bio
authorChris Fulljames <christianfulljames@gmail.com>
Fri, 10 Jan 2025 23:05:13 +0000 (18:05 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Fri, 10 Jan 2025 23:05:13 +0000 (18:05 -0500)
templates/profile.html

index 22c1619ac1fb05702ee16edf1032923982e31c1c..07fae6d17b8568df1d000caba6148f9773a1d88d 100644 (file)
@@ -7,7 +7,7 @@
 <h1 class="profile-name">{{ name }}</h1>
 
 <!-- Bio -->
-<div class="profile-bio" id="profile-bio">{{ bio|safe }}</div>
+<div class="profile-bio" id="profile-bio">{{ (bio.replace("\n", "<br>"))|safe }}</div>
 
 <!-- Bio edit form -->
 {% if session["userid"] == userid %}