From: Thomas Viehmann Date: Sat, 3 May 2008 17:45:16 +0000 (+0000) Subject: formatting of description X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bb54ee69b5c5be64e73893d450105a74bdd88b4c;p=dak.git formatting of description --- diff --git a/dak/examine_package.py b/dak/examine_package.py index c7fd38e6..b9ac9af3 100644 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -368,9 +368,12 @@ def output_deb_info(filename): elif key == 'Maintainer': field_value = maintainer elif key == 'Description': - desc = control.Find(key) - desc = re_newlinespace.sub('\n ', desc) - field_value = escape_if_needed(desc) + if use_html: + field_value = formatted_text(control.Find(key), strip=True) + else: + desc = control.Find(key) + desc = re_newlinespace.sub('\n ', desc) + field_value = escape_if_needed(desc) else: field_value = escape_if_needed(control.Find(key)) to_print += " "+format_field(key,field_value)+'\n'