This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Commit fd9b32b
committed
Allow profile description customization
When opening the profile editor, the description field is populated but
is marked ReadOnly for some reason; all the back-end code existed to
make this read-write (except in the case when the profile lacks a
description, see the comment in TailoringWindow::setProfileDescription
and TailoringWindow::setProfileTitle).
This makes the field read-write.
Note that the behavior is less than ideal: <xccdf:description /> can
include HTML content, and while this is a HTML-aware editor, hitting the
return key inserts merely a '\n' into the text stream and not a <br />
(or better, <xhtml:br /> with XML-NS awareness) element.
Perhaps this behavior should be corrected at the openscap library level,
detecting the HTML XML namespace applied on the <xccdf:description />
element and namespacing the input correctly?
Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>1 parent 4ae682c commit fd9b32b
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| |||
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
37 | | - | |
38 | | - | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
60 | | - | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
| |||
0 commit comments