From nobody Sun Dec 14 06:18:14 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C17192741C2; Mon, 28 Jul 2025 16:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753718542; cv=none; b=Jj8ocLNtAeJurhFXDF3CXHskg1ETeGYQQPZbLkAHvw3TaB7i1vcDs1aaM0o4nZi5Ztsj+Kx7FDXrbrDvMzG/gLZ4GoBYBDBvRRnogPKEb2LQkyAAXhmdUZzS7re0iQgUKYalgp5HD9yLp6h6VZXwbJ3O3at018JkKsKc5dMKZIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753718542; c=relaxed/simple; bh=/8GKUg/hE6EZzmvBGeqtvN5XqiYkoQRfu9Nd+64B7DM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TTfucKgjp/swqIuxjgXHtLvewWtA3VL0GYngopJOiZq04XVyjlwqbll0nts8bXl0twNxX0ZifVCEg1acFk4UpT+eEzrxTih/aeAG9+eTtWRDw4R+2hbKTn/JDx12AxhJZpe0/N6/wq2nEXN1Dppi+iPqUKUe3aJ/Mrg9u8dWNCI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dXJSLu6L; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dXJSLu6L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3865DC2BC87; Mon, 28 Jul 2025 16:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753718542; bh=/8GKUg/hE6EZzmvBGeqtvN5XqiYkoQRfu9Nd+64B7DM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dXJSLu6LcGij5t1mTm16tztOBw7o78gJBAacpUCeCkX6tUKYT4GjlZbIzWHYIpUAA nybwD/1FjADUS3DODns7P1MwMwuNDLtfFUtEh7Pnb4x/7fuSuALk2TGQm2NeUQpcWw Luh6NXdK1ZOMYxEO+7ysOe5/31dh2Uqg6KIjKSQ8iLh86trwXhKn04WxbN0mddq3Ki abs3u2qVI4gmcWQtbOgxvAgvYWOxZHOsW4eAJSfTrBOObqABB+T856ZOHXKEpr1Vk1 rpPXEhmijg6lyDz4ovQUpueDQwWDPpKBIxoQ8itWmURbtTHmEmtciwSAQ2OWG0PUF4 +aMJypVaoo1wQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1ugQIq-00000000GdH-2IKi; Mon, 28 Jul 2025 18:02:16 +0200 From: Mauro Carvalho Chehab To: "Message-ID :" , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Akira Yokosawa" , "Breno Leitao" , "David S. Miller" , "Donald Hunter" , "Eric Dumazet" , "Ignacio Encinas Rubio" , "Jakub Kicinski" , "Jan Stancek" , "Jonathan Corbet" , "Marco Elver" , "Paolo Abeni" , "Randy Dunlap" , "Ruben Wauters" , "Shuah Khan" , "Simon Horman" , joel@joelfernandes.org, linux-kernel-mentees@lists.linux.dev, linux-kernel@vger.kernel.org, lkmm@lists.linux.dev, netdev@vger.kernel.org, peterz@infradead.org, stern@rowland.harvard.edu Subject: [PATCH v10 13/14] docs: parser_yaml.py: fix backward compatibility with old docutils Date: Mon, 28 Jul 2025 18:02:06 +0200 Message-ID: <9715e41c91302e2b8a9baf349903f3fcff726295.1753718185.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" As reported by Akira, older docutils versions are not compatible with the way some Sphinx versions send tab_width. Add a code to address it. Reported-by: Akira Yokosawa Closes: https://lore.kernel.org/linux-doc/598b2cb7-2fd7-4388-96ba-2ddf0ab55= d2a@gmail.com/ Tested-by: Akira Yokosawa Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parser_yaml.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/sphinx/parser_yaml.py b/Documentation/sphinx/par= ser_yaml.py index 8288e2ff7c7c..1602b31f448e 100755 --- a/Documentation/sphinx/parser_yaml.py +++ b/Documentation/sphinx/parser_yaml.py @@ -77,6 +77,10 @@ class YamlParser(Parser): =20 result.append(line, document.current_source, lineoffset) =20 + # Fix backward compatibility with docutils < 0.17.1 + if "tab_width" not in vars(document.settings): + document.settings.tab_width =3D 8 + rst_parser =3D RSTParser() rst_parser.parse('\n'.join(result), document) =20 --=20 2.49.0