diff options
author | Frederick Muriuki Muriithi | 2025-05-02 09:46:01 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-02 09:46:01 -0500 |
commit | 82d63dd1ab4e8647568963ffc025e9a2b08f7f9d (patch) | |
tree | 30174bfc998f4dd9f819ffcbca0da5d1c4fd24f5 | |
parent | 5f686da1ad6814657b7a699dcafdf58ca3521e33 (diff) | |
download | gn-uploader-82d63dd1ab4e8647568963ffc025e9a2b08f7f9d.tar.gz |
Format abstracts a little better.
-rw-r--r-- | uploader/templates/publications/view-publication.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uploader/templates/publications/view-publication.html b/uploader/templates/publications/view-publication.html index 5b93434..388547a 100644 --- a/uploader/templates/publications/view-publication.html +++ b/uploader/templates/publications/view-publication.html @@ -48,7 +48,11 @@ </tr> <tr> <th>Abstract</th> - <td>{{publication.Abstract or "—"}}</td> + <td> + {%for line in (publication.Abstract or "—").replace("\r\n", "<br />").replace("\n", "<br />").split("<br />")%} + <p>{{line}}</p> + {%endfor%} + </td> </tr> </table> </div> |