diff --git a/bin/werclib.rc b/bin/werclib.rc index 8e272ef..a64ef40 100644 --- a/bin/werclib.rc +++ b/bin/werclib.rc @@ -102,7 +102,7 @@ fn get_html_title { # As a backup we might want to pick the first 'non-tag' text in the file with: if(~ $"t '') - t=`{sed -n -e 's/^(<[^>]+>)*([^<]+).*/\2/p; 32q' < $1 | sed 1q} + t=`{sed -n -e 's/^[ ]*(<[^>]+>)*([^<]+).*/\2/p; 32q' < $1 | sed 1q} echo $t }