Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2749412ybv; Mon, 24 Feb 2020 10:52:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxbYJo1nJ4Qg/ZoReCBiwJCHKMSYgJ4/Ucsx2fjlMEZqepldtshJSvuDKa3ubDNqOdAs099 X-Received: by 2002:a9d:4f04:: with SMTP id d4mr41158101otl.78.1582570365545; Mon, 24 Feb 2020 10:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582570365; cv=none; d=google.com; s=arc-20160816; b=Fa5nvP5Gx8dJR+QhZkR/ft9LVKQGwn2i8Z4tsSMb24tB5q15h1KXJ9bHkpKAp8uiMJ UkqG8sbMiuCMDN4V8PZ0gyWQIfuu43d/QxeycvwDVk0fVM5XZHAuIzjBKYh0zSQzMtwX Qre5gYYvD0b7cINxgu5erP+l5aJrHRwZTdkK5yjvyqiifibFew0dP7IrstRgqzHoIydw rexxP1z0WriHixZWrEZUzW0HhIvLhFeDDvrOmq1bb1I6nC+74DhKLjTql42j+nUBwSP7 K4qphE9LaOj6w/HoqukZRXfNlstnKUMTCkaw3oWKMqpkucpLEDZ5ciiVr6wdr2zm81aV 1xIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nRBzLDtemx30OL1sftb36YKg83jYAET0VZe4l47BGXQ=; b=Ejx2MSJ1Gh3fdQexMO/Jkc9J7D0AKZPPGsaSdumG86dUeL5H6/wgt+gHFyU2aA3M04 TzMJZnphP6+4R6ROz6ZOKJePa5vYPnWjHsLywXWWKvcpz7uomiFYzG2N1KFX9IFS7yju 0FtyX6NKGvGWaQAKT8xM+bfN6zmU2JzFDBnAFvFz1X7vxsev1MqMO8oO64VGzc/1hxEg xtyeCPOBtno+qq0H2dgsceHvxU39yURqU5eJiPvSixiByQWY9iwvEKnwGXfmF6JKoC+o QTB3ws+oK2iFi9r+cy+U7VVzxkWRw3MsbpgBb2NU9FWeAHMhXI+3Po6n6UaSUGEY/bgN 96wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N7oMSHVs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si5071581oim.195.2020.02.24.10.52.31; Mon, 24 Feb 2020 10:52:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N7oMSHVs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbgBXSw3 (ORCPT + 99 others); Mon, 24 Feb 2020 13:52:29 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:50538 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgBXSw2 (ORCPT ); Mon, 24 Feb 2020 13:52:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=nRBzLDtemx30OL1sftb36YKg83jYAET0VZe4l47BGXQ=; b=N7oMSHVs8w9kffpDWsbe2+Y0ic N1CMcKdjYJX40w6FAnvYxAyMdjYnKIkXnxgjtmBoWhJaVpl/K3X2za4sKRPwmZZsZ/l9TUcGnUYhW cofaKGji+mmxgf1l6LRUYhQ/Mau12Ai0CZ+EQqcGw6R+5Lq1e4KM/l7gtwMG8or14WXM5GeHPTdVe PZnqF2Q41eXRdN+y1zMqucpFmOsAuusj7XceBVXnJ+Awy6GWWeuuxbWnh+qWAqRnNGVafZ4JqRUeS hOvzwIcnLWZt6krzn0E8VkwVwNYv6rQxdMxbvWDS33dMGzUW8/rUfvVu9if2qCMVWgcaQu3O4m+4w o2I1Bx2A==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6IqB-0001aE-74; Mon, 24 Feb 2020 18:52:27 +0000 Date: Mon, 24 Feb 2020 10:52:27 -0800 From: Matthew Wilcox To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: Jonathan Corbet , linux-doc@vger.kernel.org, Andi Kleen , Thomas Gleixner , Randy Dunlap , "Darrick J. Wong" , Arnd Bergmann , "Chang S. Bae" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: process: changes.rst: Escape --version to fix Sphinx output Message-ID: <20200224185227.GO24185@bombadil.infradead.org> References: <20200223222228.27089-1-j.neuschaefer@gmx.net> <20200224110815.6f7561d1@lwn.net> <20200224184719.GA2363@latitude> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200224184719.GA2363@latitude> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 07:47:19PM +0100, Jonathan Neuschäfer wrote: > On Mon, Feb 24, 2020 at 11:08:15AM -0700, Jonathan Corbet wrote: > > On Sun, 23 Feb 2020 23:22:27 +0100 > > Jonathan Neuschäfer wrote: > > > > > Without double-backticks, Sphinx wrongly turns "--version" into > > > "–version" with a Unicode EN DASH (U+2013), that is visually easy to > > > confuse with a single ASCII dash. > > > > > > Signed-off-by: Jonathan Neuschäfer > > > > This certainly seems worth addressing. But I would *really* rather find > > a way to tell Sphinx not to do that rather than making all of these > > tweaks - which we will certainly find ourselves having to do over and > > over again. I can try to look into that in a bit, but if somebody were > > to beat me to it ... :) > > This seems to do the trick: > > diff --git a/Documentation/conf.py b/Documentation/conf.py > index 3c7bdf4cd31f..8f2a7ae95184 100644 > --- a/Documentation/conf.py > +++ b/Documentation/conf.py > @@ -587,6 +587,9 @@ pdf_documents = [ > kerneldoc_bin = '../scripts/kernel-doc' > kerneldoc_srctree = '..' > > +# Render -- as two dashes > +smartquotes = False I think what Jon was looking for was the ability to selectively turn smartquotes off for a section and then reenable it?