Received: by 10.223.185.116 with SMTP id b49csp1134085wrg; Wed, 14 Feb 2018 12:08:54 -0800 (PST) X-Google-Smtp-Source: AH8x225D/hHobBL64qxlr8Yze6RiBuAzFIasL71m1iIMzx0bDq7KzdkbLuKr2wbugwqM9akdcohD X-Received: by 2002:a17:902:6985:: with SMTP id l5-v6mr205443plk.14.1518638934002; Wed, 14 Feb 2018 12:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518638933; cv=none; d=google.com; s=arc-20160816; b=IeCDjN87XTjsrxUxMoz1MqLojEvZMann+i6ioXDEGmyO4Z91b6VjfeoBwsC75JoFLP uA/IFczDZD3H1Ra7uCR51EWtVd/RNQamfSfbElX6SeC4Wg1M005hZTy7YsGPq+k0HFBF RnQhACVhfDFRFFnn5Cx8IeNalbz7XZwn4PnszfYuX1hN5U9fO9HI8pOW122oHcaiEIn8 ELyAU5I2HQEP9+UuHbwNpqouylRV1xg3ejT/1eZQuvnwprnanJda9tYPApBK9+BPQkC1 H020CJOL7D+hsBl/7E9c82IUreLtM72Tbwe5M/PoCZXX5+fCDitbJGaw8bCpY8cyPhXS hEvg== 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=3pWAnelLrWcQs1BcHhOFiTFWHwhLTWUgbM8p3+IH5gs=; b=uCL0Q6znXu6vovYh3mnVDu0UvIuYe/aS3xvbixDqeuujxjJ/9oo36eY+4/FbK9d6Sw j0P1GK+9ceeqhUJXv5ztO62bvrJFI8m/kA/9EXi5L9PNyEMKUaZW3ghb0urRgnDHVylK VLdPFHPZaji8SlZHTSHv894Vd4kiazwqZRfarrYe0V013WfjRnEqWMXkjMtxQQGeqN4t eSW17ARdaq+n9P7uEGyWSzMYzsw7k9xqwX1/ZBOcapY79UbpYAW1USN0vUZoj4k4lRto 8HIAD6k09xCcfHrmeuzPiCoNGjfDux8R7iTO+SWGgofEvlTUGFXnQ208sdxrLx0GeY6Z fN7Q== 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 o18si241771pfa.407.2018.02.14.12.08.38; Wed, 14 Feb 2018 12:08:53 -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; 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 S1033001AbeBNQxM convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Feb 2018 11:53:12 -0500 Received: from smtp3-1.goneo.de ([85.220.129.38]:41594 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032744AbeBNQxL (ORCPT ); Wed, 14 Feb 2018 11:53:11 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id B887D23F937; Wed, 14 Feb 2018 17:53:08 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.792 X-Spam-Level: X-Spam-Status: No, score=-2.792 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.108, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ljuxelug7kMT; Wed, 14 Feb 2018 17:53:07 +0100 (CET) Received: from [192.168.1.112] (dyndsl-031-150-097-072.ewe-ip-backbone.de [31.150.97.72]) by smtp3.goneo.de (Postfix) with ESMTPSA id B1ECF23F402; Wed, 14 Feb 2018 17:53:07 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 8/8] docs: kernel-doc: Don't mangle literal code blocks in comments From: Markus Heiser In-Reply-To: <20180207172624.24555-9-corbet@lwn.net> Date: Wed, 14 Feb 2018 17:53:06 +0100 Cc: Linux Doc Mailing List , LKML , Mauro Carvalho Chehab , "Tobin C. Harding" , Jani Nikula Content-Transfer-Encoding: 8BIT Message-Id: References: <20180207172624.24555-1-corbet@lwn.net> <20180207172624.24555-9-corbet@lwn.net> To: Jonathan Corbet 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 > Am 07.02.2018 um 18:26 schrieb Jonathan Corbet : > > It can be useful to put code snippets into kerneldoc comments; that can be > done with the "::" operator at the end of a line like this:: > > if (desperate) > run_in_circles(); > > kernel-doc currently fails to understand these literal blocks and applies > its normal markup to them, which is then treated as literal by sphinx. The > result is unsightly markup instead of a useful code snippet. > > Apply a hack to the output code to recognize literal blocks and avoid > performing any special markup on them. It's ugly, but that means it fits > in well with the rest of the script. > > Signed-off-by: Jonathan Corbet [...] FYI; added similar patch to python version of kernel-doc: https://github.com/return42/linuxdoc/commit/3205b8a68 may you like to add regexpr for code-block directive to your patch (jani mentioned already). -- Markus --