Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rwxr-xr-xmake-descriptions.sh4
diff --git a/make-descriptions.sh b/make-descriptions.sh
index 44fcdcf..c1859a2 100755
--- a/make-descriptions.sh
+++ b/make-descriptions.sh
@@ -9,9 +9,9 @@ fi
for file in $(find "$1" -type f -name "*.html"); do
# Get text that matches "p>any amount of characters</p" from current file
# remove the "p>" and "</p" from result
- # make lines that start with "<" blank
+ # make everything that starts with "<" blank
# take all lines that aren't blank
- description=$(egrep -o "p>(.+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/^<.*//g" | grep .)
+ description=$(egrep -o "p>(.+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/<.*//g" | grep .)
# Get the first 200 characters
description=${description::200}