diff options
author | Markus Koch <markus@notsyncing.net> | 2021-02-09 22:19:04 +0100 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2021-02-09 22:19:04 +0100 |
commit | 314f0da3beffc0faf77a9e9c2fecc2b5742d7eef (patch) | |
tree | 9f38c5fc082463e96bb5891e5a216998b6ca84bf | |
parent | f36d3cf0e7b75b75d44e8e1bd951729d58cb9e8b (diff) | |
download | lifomapserver-314f0da3beffc0faf77a9e9c2fecc2b5742d7eef.tar.gz lifomapserver-314f0da3beffc0faf77a9e9c2fecc2b5742d7eef.tar.bz2 lifomapserver-314f0da3beffc0faf77a9e9c2fecc2b5742d7eef.zip |
Removing leading <br> paragraph
Technically, this is an error in the data (aka MediaWiki), but w/e...
-rwxr-xr-x | scripts/geojson/get_rendered_meta.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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/<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 temp=`echo "$temp" | sed "s#href=\"#href=\"$BASE#g" | sed 's/"/\\\\"/g' | sed 's/\t//g'` description="$temp" |