[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: |
Fri, 28 Aug 2015 23:47:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Mathieu Lirzin <address@hidden> writes:
> From 665c92dc5e9976719ac7a6e427253b6ee65c78d8 Mon Sep 17 00:00:00 2001
> From: Mathieu Lirzin <address@hidden>
> Date: Fri, 7 Aug 2015 00:10:43 +0200
> Subject: [PATCH] packages: Add package-description-string.
>
> * guix/packages.scm (package-description-string): New variable.
> * guix/utils.scm (texi->plain-text): Likewise.
> * guix/ui.scm (package->recutils): Use it.
> * gnu/packages/perl.scm (perl-devel-globaldestruction)
> (perl-devel-lexalias, perl-exporter-lite): Adapt to Texinfo's markup.
> * gnu/packages/python.scm (python2-empy): Likewise.
> ---
> gnu/packages/perl.scm | 6 +++---
> gnu/packages/python.scm | 2 +-
> guix/packages.scm | 6 ++++++
> guix/ui.scm | 5 +++--
> guix/utils.scm | 8 ++++++++
> 5 files changed, 21 insertions(+), 6 deletions(-)
>
[...]
> - (define (description->recutils str)
> - (let ((str (P_ str)))
> + (define (description->recutils package)
^^^
> + (let ((str (texi->plain-text (P_ str))))
> (string->recutils
> (fill-paragraph str width
> (string-length "description: ")))))
There is a mistake here, it should be 'str' instead of 'package'.
Here is the updated draft.
0001-packages-Add-package-description-string.patch
Description: Text Data
--
Mathieu Lirzin