From 0ea05733495197f4c8e9e77cff911f3836e0d2f8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 25 Jan 2024 10:22:15 +1100 Subject: [PATCH] PyDoc: remove unnecessary newlines which caused invalid syntax Resolves all warnings building Python docs. --- scripts/startup/bl_operators/anim.py | 2 +- source/blender/editors/space_graph/graph_slider_ops.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/startup/bl_operators/anim.py b/scripts/startup/bl_operators/anim.py index fe0f7bd4a5d..8d6bb1d8949 100644 --- a/scripts/startup/bl_operators/anim.py +++ b/scripts/startup/bl_operators/anim.py @@ -584,7 +584,7 @@ class ARMATURE_OT_collection_show_all(Operator): class ARMATURE_OT_collection_remove_unused(Operator): - """Remove all bone collections that have neither bones nor children.\n""" \ + """Remove all bone collections that have neither bones nor children. """ \ """This is done recursively, so bone collections that only have unused children are also removed""" bl_idname = "armature.collection_remove_unused" diff --git a/source/blender/editors/space_graph/graph_slider_ops.cc b/source/blender/editors/space_graph/graph_slider_ops.cc index 1e18718b1c3..fb746eb34c8 100644 --- a/source/blender/editors/space_graph/graph_slider_ops.cc +++ b/source/blender/editors/space_graph/graph_slider_ops.cc @@ -2440,8 +2440,7 @@ void GRAPH_OT_scale_from_neighbor(wmOperatorType *ot) ot->name = "Scale from Neighbor"; ot->idname = "GRAPH_OT_scale_from_neighbor"; ot->description = - "Increase or decrease the value of selected keys \n\ - in relationship to the neighboring one"; + "Increase or decrease the value of selected keys in relationship to the neighboring one"; /* API callbacks. */ ot->invoke = scale_from_neighbor_invoke;