# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1602520062 -7200
# Node ID 8d692a8a8f48529b45ca6498eaca7a5c744bbc8e
# Parent  dd81a318a794dcd496a7e0ba2284e50dac4f56fd
mod_http_errors: Remove 'extra' element when empty

diff -r dd81a318a794 -r 8d692a8a8f48 plugins/mod_http_errors.lua
--- a/plugins/mod_http_errors.lua	Mon Oct 12 18:16:18 2020 +0200
+++ b/plugins/mod_http_errors.lua	Mon Oct 12 18:27:42 2020 +0200
@@ -57,7 +57,7 @@
 <body>
 <h1>{title}</h1>
 <p>{message}</p>
-<p class="extra">{extra?}</p>
+{extra&<p class="extra">{extra?}</p>}
 </body>
 </html>
 ]];