From nobody Wed Oct 8 17:34:30 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 DF2DA25A34F; Thu, 26 Jun 2025 08:13:27 +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=1750925608; cv=none; b=Eg4Qntkac0wdvJiStsRc62/3+x9yvnJ5LfkgVXexkC7bJyudktz2YXq89cMQQkfoNcQggAabXhPsW1WSdjkJ9npk3Ml2KJjxKz/OKkjEITZtfFhu9w8Uy1JZh+Su4yWoDuv+3lzehXjhh35XYLBKxDVZt4qx2INDqde00eaS+zg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750925608; c=relaxed/simple; bh=v9oPQ++3T/oLHadwElBOCj5ha5V/O+Y96e7j6LLicng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hrVy35HglUZHIZaku9fcThUyJSpHppKzVhbvd9wSwxa4nbgp6i9rsUlu8D39aLXHFvzS76Gfh+xBYjSmJYIeSyKGPXxx/7zKwwUddIfZJ8mBdMVj3VqKLSP+VqBCVj0w6PlelQ2nAOX8F0jBazx057HKLv7+eCoNef1ZvEKK8HE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R2hlSv+9; 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="R2hlSv+9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5827C4CEEB; Thu, 26 Jun 2025 08:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750925607; bh=v9oPQ++3T/oLHadwElBOCj5ha5V/O+Y96e7j6LLicng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R2hlSv+9dfCQPGwlVxYCIGjwbTFcgQ4z6XmcsZ2JPk1WWS5vfPluEOXC6sdTLIh99 4frwL4/xpy0tnsMg8E1IwIpCS+rbSEU8NZgf/2b+6P0EXNgSTwf8fPAN9PzqGdFrjn CpxaRE1S/CeCrmtJaARNn/cTscPEv1NHuPIyEyIqNlDdzzTdw7BWIwg0sX0ws1473K jCmR7agEV2tQ8dbd09laT4eOZJmWamYODwqSV7sOlVeXF89H3xpS3RUlVK82Tm0nzR C1/0t54wyMRUIEuIa/1K5r+m4JDCrDjT03l0hUtZMF5Dx+6F0eFk9O1+xuPsJ1Pnrz rOlWWQfBXoeOg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uUhjT-00000004swE-2Qwb; Thu, 26 Jun 2025 10:13:19 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Akira Yokosawa" , "Breno Leitao" , "David S. Miller" , "Donald Hunter" , "Eric Dumazet" , "Ignacio Encinas Rubio" , "Jan Stancek" , "Marco Elver" , "Mauro Carvalho Chehab" , "Paolo Abeni" , "Randy Dunlap" , "Ruben Wauters" , "Shuah Khan" , 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 v8 13/13] docs: parser_yaml.py: fix backward compatibility with old docutils Date: Thu, 26 Jun 2025 10:13:09 +0200 Message-ID: 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. Closes: https://lore.kernel.org/linux-doc/598b2cb7-2fd7-4388-96ba-2ddf0ab55= d2a@gmail.com/ Signed-off-by: Mauro Carvalho Chehab Reported-by: Akira Yokosawa Tested-by: Akira Yokosawa --- 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