Removing leading <br> paragraph

Technically, this is an error in the data (aka MediaWiki), but w/e...
This commit is contained in:
Markus Koch 2021-02-09 22:19:04 +01:00
parent f36d3cf0e7
commit 314f0da3be

View File

@ -9,7 +9,7 @@ categories=""
data=`curl -s "$1"` data=`curl -s "$1"`
temp=`echo "$data" | sed -n 's/<p>\(.\+\).*/\1/p' | head -n1` temp=`echo "$data" | sed -n 's/<p>\(.\+\).*/\1/p' | grep -v -e '^<br />$' | sed 's#^</p>##' | head -n1`
if [ "$temp" != "" ]; then if [ "$temp" != "" ]; then
temp=`echo "$temp" | sed "s#href=\"#href=\"$BASE#g" | sed 's/"/\\\\"/g' | sed 's/\t//g'` temp=`echo "$temp" | sed "s#href=\"#href=\"$BASE#g" | sed 's/"/\\\\"/g' | sed 's/\t//g'`
description="$temp" description="$temp"