Handling periods in tags when extracting the first doc sentence.

This commit is contained in:
Alex Shinn 2015-05-03 08:39:00 +09:00
parent f71d3e18bd
commit 7fa00eb48a

View file

@ -365,7 +365,10 @@
(else '()))))
(define package-description
(let ((sent-re (regexp '(: "<p>" (* "\n") (* space) ($ (* (~ ("."))) "."))))
(let ((sent-re (regexp '(: "<p>" (* "\n") (* space)
($ (* (or (: "<" (* (~ (">"))) ">")
(~ ("<."))))
"."))))
(space-re (regexp '(or (: (* space) "\n" (* space)) (>= 2 space))))
(tag-re (regexp '(: "<" (? "/") (* (~ ("<>"))) ">"))))
(lambda (cfg spec libs docs)