diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-22 22:31:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-12-22 22:31:30 +0100 |
commit | dcfe3cafca542a38a213a44e201e317c68f89dcd (patch) | |
tree | 478feed95c882ddf659956c0dfa3004a7c20cd8a /adapter/format | |
parent | 2d2b5fcfbe7e97f3d96c1959b25b797b0a9dafac (diff) | |
download | chawan-dcfe3cafca542a38a213a44e201e317c68f89dcd.tar.gz |
uri2html: skip hr if title is empty
Diffstat (limited to 'adapter/format')
-rw-r--r-- | adapter/format/uri2html | 2 |
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>@' |