mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 08:10:17 +02:00
* snarf-guile-m4-docs (display-texi): Strip off `# ' from start of
docstring lines if possible, rather than just `#'.
This commit is contained in:
parent
e12ed7aa92
commit
27c54e0b59
2 changed files with 11 additions and 3 deletions
|
@ -43,9 +43,12 @@ exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
|
|||
(define (display-texi lines)
|
||||
(display "@deffn {Autoconf Macro}")
|
||||
(for-each (lambda (line)
|
||||
(display (if (string=? "#" (substring line 0 1))
|
||||
(substring line 1)
|
||||
line))
|
||||
(display (cond ((and (>= (string-length line) 2)
|
||||
(string=? "# " (substring line 0 2)))
|
||||
(substring line 2))
|
||||
((string=? "#" (substring line 0 1))
|
||||
(substring line 1))
|
||||
(else line)))
|
||||
(newline))
|
||||
lines)
|
||||
(display "@end deffn")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue