1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Johannes Rothe <rothe@magazino.eu>
Date: Mon, 30 Jan 2023 10:27:23 +0100
Subject: Fix AttributeError with docutils >= 0.18
Closes #351
---
src/catkin_pkg/cli/tag_changelog.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/catkin_pkg/cli/tag_changelog.py b/src/catkin_pkg/cli/tag_changelog.py
index 311c7db..f4fbb43 100644
--- a/src/catkin_pkg/cli/tag_changelog.py
+++ b/src/catkin_pkg/cli/tag_changelog.py
@@ -28,7 +28,7 @@ def get_forthcoming_label(rst):
if len(section.children) > 0 and isinstance(section.children[0], docutils.nodes.title):
title = section.children[0]
if title and len(title.children) > 0 and isinstance(title.children[0], docutils.nodes.Text):
- title_text = title.children[0].rawsource
+ title_text = title.children[0]
if FORTHCOMING_LABEL.lower() in title_text.lower():
if forthcoming_label:
raise RuntimeError('Found multiple forthcoming sections')
|