mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
generate_descriptor_pages.main.kts: Fix rendering deprecated attribute information
This commit is contained in:
parent
a0576f3061
commit
9d4fd6197b
@ -314,17 +314,15 @@ fun StringBuilder.appendAttributeDeprecationInfo(attribute: Attribute) {
|
||||
val deprecatedSince = attribute.deprecatedSince
|
||||
val deprecationNote = attribute.deprecationNote
|
||||
if (deprecatedSince != null || deprecationNote != null) {
|
||||
if (deprecatedSince != null) {
|
||||
append("**_Deprecated since ${deprecatedSince}_**".indentLines(4))
|
||||
} else {
|
||||
append("**_Deprecated_**")
|
||||
}
|
||||
append(
|
||||
(if (deprecatedSince != null) "**_Deprecated since ${deprecatedSince}_**" else "**_Deprecated_**").indentLines(2)
|
||||
)
|
||||
if (deprecationNote != null) {
|
||||
val noteWithoutLineBreaks = deprecationNote.replace('\n', ' ')
|
||||
append(": $noteWithoutLineBreaks")
|
||||
}
|
||||
appendLine()
|
||||
}
|
||||
append("")
|
||||
}
|
||||
|
||||
fun StringBuilder.appendChildren(parent: Element, parentPath: String) {
|
||||
|
@ -1179,7 +1179,8 @@ Attributes
|
||||
- `ref` _(**required**)_<br/>
|
||||
The ID of the action to add to a group.
|
||||
- `id` _(optional)_<br/>
|
||||
**_Deprecated_**: Use `ref` instead.
|
||||
**_Deprecated_**: Use `ref` instead.
|
||||
|
||||
The ID of the action to add to a group.
|
||||
|
||||
Children
|
||||
|
Loading…
x
Reference in New Issue
Block a user