]> err.no Git - dak/commitdiff
formatting of description
authorThomas Viehmann <tv@beamnet.de>
Sat, 3 May 2008 17:45:16 +0000 (17:45 +0000)
committerThomas Viehmann <tv@beamnet.de>
Sat, 3 May 2008 17:45:16 +0000 (17:45 +0000)
dak/examine_package.py

index c7fd38e60acd0e17943764f6d1b491227a52e52f..b9ac9af3b1c2acc1b26cd71868ecfb69b2eeb645 100644 (file)
@@ -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'