Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp998982rwr; Thu, 20 Apr 2023 08:43:26 -0700 (PDT) X-Google-Smtp-Source: AKy350a1x8xu3PI6NsgehhMsoeCUIop64FF4+scJ4puKUxDD+8EAd+0zRUUOvl47KK4q8qrVFoBA X-Received: by 2002:a17:90a:bf10:b0:23e:fc9c:930 with SMTP id c16-20020a17090abf1000b0023efc9c0930mr2137273pjs.36.1682005406674; Thu, 20 Apr 2023 08:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682005406; cv=none; d=google.com; s=arc-20160816; b=vgBavxcAGFK1rNvDrhY9sgAEPXVn22NDJSXCZ2Wq7DJerfA5m1ggaqytiOOgyr/ael wKDbWIv6EiCvQ6LOAsOFxEYgvXzPDEG+iBw7rAUlN3zMcRNQVKhoSeRzAULF2g+Fs5f2 aRWIgImNDq31ckjxwlIsvZhepFIzU/uRrcNfC/Jg1O1qteDUGkDCy+coPz5zfq6K2O04 68ae+usJdEfLiBY6+Ww2ZjuXn9K8K2JexVHizq2UDyuwy/iX42Edd53fkE+XgYvkJq7+ 0TsnwVLbEhsufvQwItxpNnZ3zVGZ8aq3TG/7iT6vl+2iaCOa3aJI6G2ldkarJlgIg9V3 EbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=UF61JW6oRtLJIYx10KbxIyUy5rSXTyyXgGlY7V2DrHg=; b=DhwQ0xvhY55CeRZ4B6abdV8wqvyV/DsYTL42VG4dBPwxgBelwkOwhXVhSL2F9VnCvQ SDSMT7H5wBNtE9zIvEj/n3EMUafETeRF+bEqQed/L0lEEENlsnzMLgXRXWn5LYEWZMsJ gPF6Ub3QD5KYHdtUveiI904BaCbwCSNrMNOmMP/7ZQTcMky1Q34ynsuUqKenF7S3gG5J SeM+Q6ojCU+Fwfam4CIo+ro4RPt5sz9BrpDy0KuvJahAHFVMaQK5YYHEsMSuXnym5C5K hCMChKCe7j4v86irXDXA8kCAoOkVgMdNyLW/+3lDPYGJJvgGGNEl9P/pq/Yh43yfj4ZW faTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Qcb4dlTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a17090a868b00b002476f3bcac7si4627443pjn.179.2023.04.20.08.43.10; Thu, 20 Apr 2023 08:43:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Qcb4dlTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232133AbjDTPkq (ORCPT + 99 others); Thu, 20 Apr 2023 11:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232109AbjDTPkn (ORCPT ); Thu, 20 Apr 2023 11:40:43 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95DA61991; Thu, 20 Apr 2023 08:40:40 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id F146C732; Thu, 20 Apr 2023 15:40:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net F146C732 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1682005240; bh=UF61JW6oRtLJIYx10KbxIyUy5rSXTyyXgGlY7V2DrHg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Qcb4dlTc5ho5ToPMXUQ80Nry1hsqMBl2qEbaTo4ZKLPU3xmAuicagZzKzCd+LxXaj jxZ0adq+YtQ6huKRsNejlznrRbNlCMNy8ZqBQruRdYn/G79kOgt9bjdwaEZM8thry5 c4GRXrjPaShA+V7Mr3otYovIIStDnFB+mqFGLFdiBT3aYlSDzu0UFL8cr0PbWzDc/Z iLddw/ryvzvL5VchGaN3+8ymqcXzJNXmDA7CHhyV0/roHnxHGUCHQmCUlGBPmHpeGZ nO9/C2KW+UZQy8v7stRhB0Q+zePmY7CnNITn4qLN53b0CpDXrsWNHcFU49jq55WNNS yCfVXzeQCQSHA== From: Jonathan Corbet To: Zipeng Zhang Cc: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, masahiroy@kernel.org, codeagain@codeagain.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, Zipeng Zhang Subject: Re: [PATCH] Documentation/process/changes: Escape --options to fix Sphinx output In-Reply-To: <87sfcuu0fm.fsf@meer.lwn.net> References: <87sfcuu0fm.fsf@meer.lwn.net> Date: Thu, 20 Apr 2023 09:40:39 -0600 Message-ID: <87o7nitvd4.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jonathan Corbet writes: > The right solution, if it is possible, is to convince Sphinx to stop > messing with "--" altogether. Substituting em-dashes is of limited > cosmetic value and, I think, is something we could do without. Ah ... I get it now. We *did* disable this once by disabling the "html_use_smartypants" option in conf.py. The Sphinx folks changed the name of that option in the 1.6.6 release, though, silently turning that behavior back on. It only took us five years to notice... I think I'll just drop the attached patch into docs-next. Thanks for bringing this up! jon ------------8<----------------- From 995addeb4ab2a2c4beaf8b90a4dc8c1d64735d29 Mon Sep 17 00:00:00 2001 From: Jonathan Corbet Date: Thu, 20 Apr 2023 09:34:35 -0600 Subject: [PATCH] docs: turn off "smart quotes" in the HTML build We have long disabled the "html_use_smartypants" option to prevent Sphinx from mangling "--" sequences (among others). Unfortunately, Sphinx changed that option to "smartquotes" in the 1.6.6 release, and seemingly didn't see fit to warn about the use of the obsolete option, resulting in the aforementioned mangling returning. Disable this behavior again and hope that the option name stays stable for a while. Reported-by: Zipeng Zhang Link: https://lore.kernel.org/lkml/tencent_CB1A298D31FD221496FF657CD7EF406E= 6605@qq.com Signed-off-by: Jonathan Corbet --- Documentation/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index db16814f182f..3d1f74f76e64 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -343,9 +343,10 @@ sys.stderr.write("Using %s theme\n" % html_theme) # so a file named "default.css" will overwrite the builtin "default.css". html_static_path =3D ['sphinx-static'] =20 -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -html_use_smartypants =3D False +# If true, Docutils "smart quotes will be used to convert quotes and dashes +# to typographically correct entities. This will convert "--" to "=E2=80= =94", +# which is not always what we want, so disable it. +smartquotes =3D False =20 # Custom sidebar templates, maps document names to template names. # Note that the RTD theme ignores this --=20 2.40.0