guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Texinfo in descriptions?


From: Mathieu Lirzin
Subject: Re: Texinfo in descriptions?
Date: Wed, 02 Sep 2015 23:27:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> One last thing (I swear!).
>
> AFAICS ‘stexi->plain-text’ already does paragraph filling, so the call
> above is redundant (and could break the rendering.)
>
> However, the width of the rendered text is fixed, unlike what
> ‘string->recutils’ did so far.  To work around that, we’ll have to
> monkey-patch the ‘wrap*’ procedure of (texinfo plain-text), along these
> lines:
>
>   (define %text-width
>     (make-parameter (or (and=> (getenv "WIDTH") string->number)
>                         80)))
>
>   (set! (@@ (texinfo plain-text) wrap*)
>         (lambda strings
>           ... #:line-width (%text-width) ...))
>
> and then in ‘package->recutils’, we need to ‘parameterize’ that.
>
> We need a similar hack for #:initial-indent, that would allow us to
> mimic the 3rd argument of ‘fill-paragraph’.

Thanks for noticing this problem.  Here is an updated patch.  

Attachment: 0001-ui-Add-package-description-string.patch
Description: Text Data

--
Mathieu Lirzin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]