mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
Improve ‘(ice-9 documentation) file-commentary’ default scrub proc
Long-standing oversight. The Commentary lines almost always include at least one space following the bol semicolons. * ice-9/documentation.scm (file-commentary): In the default scrub proc, append "zero or one space char" to the ‘dirt’ regexp.
This commit is contained in:
parent
3ca22333b7
commit
ec27e23318
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@
|
||||||
;;
|
;;
|
||||||
(define default-in-line-re (make-regexp "^;;; Commentary:"))
|
(define default-in-line-re (make-regexp "^;;; Commentary:"))
|
||||||
(define default-after-line-re (make-regexp "^;;; Code:"))
|
(define default-after-line-re (make-regexp "^;;; Code:"))
|
||||||
(define default-scrub (let ((dirt (make-regexp "^;+")))
|
(define default-scrub (let ((dirt (make-regexp "^;+ ?")))
|
||||||
(lambda (line)
|
(lambda (line)
|
||||||
(let ((m (regexp-exec dirt line)))
|
(let ((m (regexp-exec dirt line)))
|
||||||
(if m (match:suffix m) line)))))
|
(if m (match:suffix m) line)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue