ludo@gnu.org (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.