Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1040495imm; Wed, 6 Jun 2018 09:33:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKpS7cYxxiaDfdQ/14l4iE/D6Ib33Ai9Kbxe0PBwuJMgCspTGk0nvxCjicebdG9n12rkrb6 X-Received: by 2002:a63:8f19:: with SMTP id n25-v6mr3186951pgd.344.1528302787824; Wed, 06 Jun 2018 09:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528302787; cv=none; d=google.com; s=arc-20160816; b=tzPBi8SVG1q4+JUY/AjznrqtpM7QxudY7bYjRov4BZ3ynDycY8q+aLtKTLYlBqAVu5 w5LXOfcC5IrjISmrqyuNjZ87OyY6xD/nV3ZRY8H6jwmuaFrZEwqYhbUgYCX3BiDqDkx/ 4MJWqDgvCBLL+srBo3kf0voRtG2u7T66IDc8mKgUrvOgZOd6l6dPH2H0XPkv978Nspvi 10VGaGzBNPxWTVoWe1H1u7fh0kAg9FSWUckYWH2wO4kBC9GQaFIjb3+me5dFS4XtrMmY 9SFC+JmTzQE/bjkrel2YRgy89/Mksne0EhjVTC5DndxBfKQ7CrXDIpCQ8qpH+NjluPUA kkDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=PrMXAXWpKnd3ICWmfqRhsfXqO1FHmccR/oDuCtcvs9I=; b=Cz7G9FyZv/Yi9u35uAZThMZL19OI7AaB5CwaDvMBGtWezUbH1cqxP+26u5NQXgYYwT HRwpP0w+rU4DcD6Xj3tJwSYCgUvJIIQa/1sXIvfXmSHn2JBnFE4NN8MVhTkTbQZPYZ45 LtPTvXMfSaf/DJ02bRACmlXabrfLhWv49DcWSA4ODb4Z37TEoBAiYoqiPBCnNFm1Pphg rvzbMIB7eHt9UwHG0/aLB6AGq7RZ9Obg0XGiy6ETNAaC/C+0bcTgrXUV/ErEGfkEwCf8 6sypoOB92J0tt0212xRRLkQEslBLj9fvgYD/Potnngv25UA4KuE8RXA/fph3xsnB1F4U aJWA== ARC-Authentication-Results: i=1; mx.google.com; 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 g10-v6si6730778pgr.72.2018.06.06.09.32.22; Wed, 06 Jun 2018 09:33:07 -0700 (PDT) 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; 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 S933003AbeFFQbN convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 Jun 2018 12:31:13 -0400 Received: from smtp1-3.goneo.de ([85.220.129.32]:56826 "EHLO smtp1-3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932152AbeFFQbM (ORCPT ); Wed, 6 Jun 2018 12:31:12 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id 72EE623F6D8; Wed, 6 Jun 2018 18:31:09 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.769 X-Spam-Level: X-Spam-Status: No, score=-2.769 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.131, BAYES_00=-1.9] autolearn=ham Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIv-5ulzjF3y; Wed, 6 Jun 2018 18:31:08 +0200 (CEST) Received: from [192.168.1.112] (host-091-097-255-197.ewe-ip-backbone.de [91.97.255.197]) by smtp1.goneo.de (Postfix) with ESMTPSA id 0BBF723F77D; Wed, 6 Jun 2018 18:31:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH v2 53/53] kernel-doc: describe the ``literal`` syntax From: Markus Heiser In-Reply-To: <5d47c31b59f6c2c7ddce0fcb1be0f85ad39a56fe.1494935649.git.mchehab@s-opensource.com> Date: Wed, 6 Jun 2018 18:31:05 +0200 Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, Jani Nikula , Daniel Vetter Content-Transfer-Encoding: 8BIT Message-Id: References: <5d47c31b59f6c2c7ddce0fcb1be0f85ad39a56fe.1494935649.git.mchehab@s-opensource.com> To: Mauro Carvalho Chehab X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro, > Am 16.05.2017 um 14:16 schrieb Mauro Carvalho Chehab : > > changeset b97f193abf83 ("scripts/kernel-doc: fix parser > for apostrophes") added support for ``literal`` inside > kernel-doc, in order to allow using the "%" symbol inside > a literal block, as this is used at printk() description. > > Document it. > > Fixes: b97f193abf83 ("scripts/kernel-doc: fix parser for apostrophes") > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/doc-guide/kernel-doc.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst > index b32e4813ff6f..b24854b5d6be 100644 > --- a/Documentation/doc-guide/kernel-doc.rst > +++ b/Documentation/doc-guide/kernel-doc.rst > @@ -149,6 +149,16 @@ Domain`_ references. > ``%CONST`` > Name of a constant. (No cross-referencing, just formatting.) > > +````literal```` > + A literal block that should be handled as-is. The output will use a > + ``monospaced font``. just nitpicking; this is not literal block, this is called an inline literal [1] To be complete: "blocks" are allways indented. [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-literals --- Markus --