diff options
Diffstat (limited to 'http')
| -rw-r--r--[-rwxr-xr-x] | http/bin/gmi2upphtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/http/bin/gmi2upphtml b/http/bin/gmi2upphtml index f19f447..b43693d 100755..100644 --- a/http/bin/gmi2upphtml +++ b/http/bin/gmi2upphtml @@ -118,8 +118,9 @@ do if [ "$(echo "$line" | cut -c1-2)" = "=>" ] then close_all_open_blocks_except link - href="$(escape_upphtml "$(echo "$line" | sed "s/^=>[[:space:]]*\([[:alnum:][:punct:]]\+\).*$/\1/")")" - title="$(escape_upphtml "$(echo "$line" | sed "s/^=>[[:space:]]*[[:alnum:][:punct:]]\+[[:space:]]\(.*\)$/\1/")")" + href="$(escape_upphtml "$(echo "$line" | sed "s/^=>[[:space:]]\+//" | sed "s/[[:space:]]\+.*//")")" + title="$(escape_upphtml "${line#=> *${href}}")" + title="${title:-${href}}" if [ $is_in_link_block -eq 0 ] then echo "<p>" |
