summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mga-advisor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mga-advisor.py b/mga-advisor.py
index 2e650c7..86a6e80 100644
--- a/mga-advisor.py
+++ b/mga-advisor.py
@@ -211,7 +211,10 @@ class Widget(QWidget):
srcs[rel][repo].append(self.sanitize_line(name))
data['src'] = srcs
if len(self.ui.description_te.toPlainText()) != 0:
- lines_desc = wrap(self.ui.description_te.toPlainText(), width=72, break_on_hyphens=False)
+ paragraphs = self.ui.description_te.toPlainText().split("\n")
+ lines_desc = []
+ for paragraph in paragraphs:
+ lines_desc += wrap(paragraph, width=72, break_on_hyphens=False)
data['description'] = literal_str("\n".join(lines_desc))
refs = []
if self.ui.list_ref.count():