From 51e6043190563a60bdf86cd70a1364f37d3af59e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 27 Sep 2022 19:51:33 +0300 Subject: [hooks] make-description now ignores lines taht start with ampersand, since those should be ftags and could break things --- generate-hooks/make-descriptions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-hooks/make-descriptions.sh b/generate-hooks/make-descriptions.sh index 49417f5..1a4ace4 100755 --- a/generate-hooks/make-descriptions.sh +++ b/generate-hooks/make-descriptions.sh @@ -11,7 +11,7 @@ for file in $(find "$1" -type f -name "*.html"); do # remove the "p>" and "(.+)<\/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 only when it's longer than 200 characters if [ ${#description} -gt 200 ]; then -- cgit v1.3.1-26-gb76a