summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfoaf/mkfoaf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/foaf/mkfoaf.sh b/foaf/mkfoaf.sh
index 41aabe7..7423e5b 100755
--- a/foaf/mkfoaf.sh
+++ b/foaf/mkfoaf.sh
@@ -45,7 +45,7 @@ linkedin2foaf() {
# work around unescaped &'s in linkedin pages
# xsltproc --html "$bindir/linkedin2foaf.xsl" "http://www.linkedin.com/in/$id" > "$outpath"
wget -q -O "$tmppath" "http://www.linkedin.com/in/$id"
- perl -i -pe 's/&([a-zA-Z0-9]+=)/&$1/g' "$tmppath"
+ perl -i -pe 's/&([a-zA-Z0-9]+=|\s)/&$1/g' "$tmppath"
xsltproc --html "$xsltdir/linkedin2foaf.xsl" "$tmppath" > "$outpath"
rm -f "$tmppath"
foafsign "$outpath"