mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-07 05:51:12 +07:00
Fix uniques.md being generated with wrong line endings (#6825)
In the repository, this file definitely has Unix line endings (\n). So generating it with \r\n causes it to always show changes, even though there aren't any
This commit is contained in:
parent
96780be1d2
commit
68a0e25c9e
@ -71,7 +71,7 @@ class UniqueDocsWriter {
|
||||
// `val paramExamples = uniqueType.parameterTypeMap.map { it.joinToString("/") { pt -> pt.docExample } }.toTypedArray()`
|
||||
// Might confuse modders to think "/" can go into the _actual_ unique and mean "or", so better show just one ("Farm" in the example above):
|
||||
val paramExamples = uniqueType.parameterTypeMap.map { it.first().docExample }.toTypedArray()
|
||||
lines += "\tExample: \"${uniqueText.fillPlaceholders(*paramExamples)}\"\r\n"
|
||||
lines += "\tExample: \"${uniqueText.fillPlaceholders(*paramExamples)}\"\n"
|
||||
}
|
||||
lines += "\tApplicable to: " + uniqueType.allTargets().sorted().joinToString()
|
||||
lines += ""
|
||||
@ -87,7 +87,6 @@ class UniqueDocsWriter {
|
||||
lines += "*[${paramType.parameterName}]: ${paramType.docDescription}$punctuation"
|
||||
}
|
||||
|
||||
// Let's use CRLF ending same as in all other files
|
||||
File("../../docs/Modders/uniques.md").writeText(lines.joinToString("\r\n"))
|
||||
File("../../docs/Modders/uniques.md").writeText(lines.joinToString("\n"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user