From 314f0da3beffc0faf77a9e9c2fecc2b5742d7eef Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Tue, 9 Feb 2021 22:19:04 +0100 Subject: [PATCH] Removing leading
paragraph Technically, this is an error in the data (aka MediaWiki), but w/e... --- scripts/geojson/get_rendered_meta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geojson/get_rendered_meta.sh b/scripts/geojson/get_rendered_meta.sh index 120645c..9debc53 100755 --- a/scripts/geojson/get_rendered_meta.sh +++ b/scripts/geojson/get_rendered_meta.sh @@ -9,7 +9,7 @@ categories="" data=`curl -s "$1"` -temp=`echo "$data" | sed -n 's/

\(.\+\).*/\1/p' | head -n1` +temp=`echo "$data" | sed -n 's/

\(.\+\).*/\1/p' | grep -v -e '^
$' | sed 's#^

##' | head -n1` if [ "$temp" != "" ]; then temp=`echo "$temp" | sed "s#href=\"#href=\"$BASE#g" | sed 's/"/\\\\"/g' | sed 's/\t//g'` description="$temp"