From nobody Sun Feb 8 18:14:34 2026 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 7EC873EBF1E; Sat, 24 Jan 2026 07:39:17 +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=1769240357; cv=none; b=J3+wqzdTXRbsxtHc1NGxZJBE6+pyEYbj8R8mBAHnGTinbIPStN4uD1A/ot0Kx0cU5Nq7rs2iUOMNrD4on4LTBNpRZFYbBLJ2y/usU0fZvfKwS+RceQcfDXfSmfkvSmvmQxPqXDg/2iIiELRUL8U4JX6xSiwQ2zmfSfMYXdF7wlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769240357; c=relaxed/simple; bh=VIlaRMwPjIfEIQDuYa02KnJ1UgKS/LPF/904EgFNK3I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=DZWgwOI34PBrPjuJ3EcXdpncKa0GR3gFAKHL5ooKi40q6cLjfNpk/ErylBmjOKroTkMieNUhqw57NOAxtEUfcxaefblx93lT0WxRccZPsCE90eSn5aJZgziYLLNAbLBAvY4wLzXys86Je06y4323Xz7coypon02ccOJhxKXJPpk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L5w/v0c4; 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="L5w/v0c4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBFF7C116D0; Sat, 24 Jan 2026 07:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769240357; bh=VIlaRMwPjIfEIQDuYa02KnJ1UgKS/LPF/904EgFNK3I=; h=From:To:Cc:Subject:Date:From; b=L5w/v0c4/nMWzcM7T57T4tE7qmhJZZ3h6bXp0tB0ueMHsGIQIz9FKhKS1pSaFGn9T NrpOoIpztwxqQDJDP1YG/N1k5wKdQHcIRt8WTVebsYTraPrlcHeDtaAmFMht31iTbp i+Fh0mUZGGSp2rgpYvLfI/BFkdaNYzH6kN5CJomx1DaLlDUKgWSovCpaGUZA5/amcw VAIMq0wYOAYV3YrJXPmQ4AgSnn4LgiwaX839AEkUPP1FKtvTtPqpn+8Xjo1qgJ7HKj mAjYbaLp8ZEbYLfX42FKpvGtSpHLCZtIy5qMlR/3ShdZGDfafmH8UJuJZ9ovWiVxsm 3NlMKPmBuV8NQ== Received: from mchehab by mail.kernel.org with local (Exim 4.99.1) (envelope-from ) id 1vjYEk-000000072DC-3xaZ; Sat, 24 Jan 2026 08:39:14 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Akira Yokosawa , Jonathan Corbet , Mauro Carvalho Chehab , Randy Dunlap Subject: [PATCH v2] docs: kdoc: Fix pdfdocs build for tools Date: Sat, 24 Jan 2026 08:39:08 +0100 Message-ID: <0a85ede84808f90a033b86a79858f410c889db9e.1769240345.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab the "\1" inside a docstring requires proper scaping to not be considered a hex character and break the build. Reported-by: Akira Yokosawa Closes: https://lore.kernel.org/linux-doc/63e99049-cc72-4156-83af-414fdde34= 312@gmail.com/ Signed-off-by: Mauro Carvalho Chehab --- tools/lib/python/kdoc/kdoc_re.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/lib/python/kdoc/kdoc_re.py b/tools/lib/python/kdoc/kdoc_= re.py index 2816bd9f90f8..0bf9e01cdc57 100644 --- a/tools/lib/python/kdoc/kdoc_re.py +++ b/tools/lib/python/kdoc/kdoc_re.py @@ -228,14 +228,18 @@ class NestedMatch: yield line[t[0]:t[2]] =20 def sub(self, regex, sub, line, count=3D0): - """ + r""" This is similar to re.sub: =20 It matches a regex that it is followed by a delimiter, replacing occurrences only if all delimiters are paired. =20 - if r'\1' is used, it works just like re: it places there the - matched paired data with the delimiter stripped. + if the sub argument contains:: + + r'\1' + + it will work just like re: it places there the matched paired data + with the delimiter stripped. =20 If count is different than zero, it will replace at most count items. --=20 2.52.0