diff --git a/templates/repository/log.html b/templates/repository/log.html
index c2da4bc..b74f5af 100644
--- a/templates/repository/log.html
+++ b/templates/repository/log.html
@@ -59,12 +59,13 @@
{{ commit.short_id }}
- {% if commit.message|length <= 100 %}
+ {% set subject, body = commit.message.split('\n', 1) %}
+ {% if body|length == 0 %}
{{ commit.message }}
{% else %}
- {{ commit.message[:100] }} ...
- {{ commit.message }}
+ {{ subject }}
+ {{ body.strip() }}
{% endif %}
|