diff options
author | Papoteur <papoteur@mageia.org> | 2023-11-03 15:02:11 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2023-11-03 15:02:11 +0100 |
commit | a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df (patch) | |
tree | 5b59c435682d2c63f073f99f94d1c308a4fdc59a | |
parent | ff5c617a429bccf8fe7226e22d76794338ef0116 (diff) | |
download | mga-advisor-a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df.tar mga-advisor-a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df.tar.gz mga-advisor-a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df.tar.bz2 mga-advisor-a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df.tar.xz mga-advisor-a4278b08cff2b39b8f7b45208dd2e0dc3eb2d2df.zip |
Fix wrapping the description
-rw-r--r-- | mga-advisor.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mga-advisor.py b/mga-advisor.py index 4869407..ec66dad 100644 --- a/mga-advisor.py +++ b/mga-advisor.py @@ -3,8 +3,8 @@ import os from pathlib import Path import sys import yaml -import textwrap import re +from subprocess import run from PySide6.QtWidgets import QApplication, QWidget, QDialog, QLineEdit, QPushButton, QVBoxLayout, QHBoxLayout, QComboBox, QTextEdit from PySide6.QtCore import QFile, QDate, QDir @@ -72,6 +72,7 @@ class Widget(QWidget): self.ui.cancel_pb.clicked.connect(self.cancel) self.ui.preview_pb.clicked.connect(self.preview) self.ui.bug_le.editingFinished.connect(self.valid_number) + # self.populate() def retrieve(self): print("Action retrieve") @@ -133,7 +134,7 @@ class Widget(QWidget): else: if not repo in srcs[release].keys(): srcs[release][repo] = [] - srcs[release][repo].append(name) + srcs[release][repo].append(self.sanitize_line(name)) if n != 0: data['src'] = srcs refs = [] @@ -142,7 +143,7 @@ class Widget(QWidget): refs.append(self.ui.list_ref.item(n).text()) if n != 0: data['references'] = refs - return yaml.dump(data, default_flow_style=False) + return yaml.dump(data, default_flow_style=False, width=75) def export(self): if QDir().mkpath(QDir().homePath() + "/mageia-advisories/advisories"): |