about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-22 22:31:30 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-22 22:31:30 +0100
commitdcfe3cafca542a38a213a44e201e317c68f89dcd (patch)
tree478feed95c882ddf659956c0dfa3004a7c20cd8a /adapter/format
parent2d2b5fcfbe7e97f3d96c1959b25b797b0a9dafac (diff)
downloadchawan-dcfe3cafca542a38a213a44e201e317c68f89dcd.tar.gz
uri2html: skip hr if title is empty
Diffstat (limited to 'adapter/format')
-rw-r--r--adapter/format/uri2html2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/format/uri2html b/adapter/format/uri2html
index 20ae5670..2fdfcc39 100644
--- a/adapter/format/uri2html
+++ b/adapter/format/uri2html
@@ -1,3 +1,3 @@
 #!/bin/sh
-echo "<!DOCTYPE html>${1+"<h1>$1</h1><hr>"}<ol>"
+echo "<!DOCTYPE html>${1:+"<h1>$1</h1><hr>"}<ol>"
 sed -e '/^#/d' -e 's@.*@<li><a href="&">&</a>@'