From 16085843c800827526ab78354bacdd6bd388993f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 15 May 2019 08:07:18 +0200 Subject: [PATCH 09/14] =?UTF-8?q?Use=20%{expand:=E2=80=A6}=20for=20descrip?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So that we stop playing with escaping. Signed-off-by: Igor Gnatenko --- rust2rpm/templates/main.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rust2rpm/templates/main.spec b/rust2rpm/templates/main.spec index 803b74e..660bb60 100644 --- a/rust2rpm/templates/main.spec +++ b/rust2rpm/templates/main.spec @@ -64,12 +64,13 @@ BuildRequires: {{ req }} {% endfor %} {% endif %} -%global _description \ +%global _description %{expand: {% if md.description is none %} %{summary}. -{% else %} -{{ md.description|wordwrap(wrapstring="\\\n")|trim }} -{% endif %} +{%- else %} +{{ md.description|wordwrap }} +{%- endif %} +} %description %{_description} -- 2.22.0.rc3