Resolved #12544 - multiline unique descriptions hidden in doc

This commit is contained in:
yairm210 2024-12-02 18:19:56 +02:00
parent eb3d8c9c01
commit 8a376de6c3
2 changed files with 1 additions and 2 deletions

View File

@ -269,7 +269,6 @@ City-States grow wary of your aggression. The resting point for Influence has de
[cityState] is deeply grateful for your assistance in the war against [civName]! =
[cityState] no longer needs your assistance against [civName]. =
[cityState] cancelled the quests they had given you because you demanded tribute from them. =
[cityState] cancelled the quests they had given you because you demanded tribute from them. =
War against [civName] =
We need you to help us defend against [civName]. Killing [amount] of their military units would slow their offensive. =
Currently you have killed [amount] of their military units. =

View File

@ -77,7 +77,7 @@ class UniqueDocsWriter {
else uniqueType.text
lines += "??? example \"$uniqueText\"" // collapsable material mkdocs block, see https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=%3F%3F%3F#collapsible-blocks
if (uniqueType.docDescription != null)
lines += "\t${uniqueType.docDescription}"
lines += "\t${uniqueType.docDescription!!.replace("\n","\n\t")}"
if (uniqueType.parameterTypeMap.isNotEmpty()) {
// This one will give examples for _each_ filter in a "tileFilter/specialist/buildingFilter" kind of parameter e.g. "Farm/Merchant/Library":
// `val paramExamples = uniqueType.parameterTypeMap.map { it.joinToString("/") { pt -> pt.docExample } }.toTypedArray()`