mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 15:34:15 +02:00
extracting strip_html
This commit is contained in:
@@ -9,9 +9,9 @@ from PyQt5.QtWidgets import QTableWidget, QTableView, QMenu, QAction, QTableWidg
|
||||
QHeaderView, QLabel, QHBoxLayout, QPushButton, QToolBar
|
||||
from bauh_api.abstract.cache import MemoryCache
|
||||
from bauh_api.abstract.model import PackageStatus
|
||||
from bauh_api.util.html import strip_html
|
||||
|
||||
from bauh.core import resource
|
||||
from bauh.util import util
|
||||
from bauh.view.qt import dialog
|
||||
from bauh.view.qt.view_model import PackageView, PackageViewStatus
|
||||
|
||||
@@ -351,7 +351,7 @@ class AppsTable(QTableWidget):
|
||||
desc = '...'
|
||||
|
||||
if desc and desc != '...':
|
||||
desc = util.strip_html(desc[0:25]) + '...'
|
||||
desc = strip_html(desc[0:25]) + '...'
|
||||
|
||||
col.setText(desc)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from PyQt5.QtWidgets import QDialog, QVBoxLayout, QGroupBox, \
|
||||
QLineEdit, QLabel, QGridLayout, QPushButton, QPlainTextEdit, QToolBar
|
||||
from bauh_api.abstract.cache import MemoryCache
|
||||
|
||||
from bauh.util import util
|
||||
from bauh_api.util.html import strip_html
|
||||
|
||||
IGNORED_ATTRS = {'name', '__app__'}
|
||||
|
||||
@@ -63,7 +63,7 @@ class InfoDialog(QDialog):
|
||||
if len(val) > 80:
|
||||
full_val = val
|
||||
self.full_vals.append(full_val)
|
||||
val = util.strip_html(val)
|
||||
val = strip_html(val)
|
||||
val = val[0:80] + '...'
|
||||
|
||||
text.setText(val)
|
||||
|
||||
Reference in New Issue
Block a user