Don't truncate extrude arg docs (#6854)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-05-12 16:48:30 +12:00
committed by GitHub
parent 8445080d7a
commit 1240b23080
5 changed files with 20 additions and 12 deletions

View File

@ -167,6 +167,7 @@ impl StdLibFnArg {
pub fn description(&self, kcl_std: Option<&ModData>) -> Option<String> {
// Check if we explicitly gave this stdlib arg a description.
if !self.description.is_empty() {
assert!(!self.description.contains('\n'), "Arg docs will get truncated");
return Some(self.description.clone());
}