From patchwork Fri Oct 18 20:31:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 284719 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 198E02C00DC for ; Sat, 19 Oct 2013 07:35:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 940598B99A; Fri, 18 Oct 2013 20:35:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w1MaN_eOYhwh; Fri, 18 Oct 2013 20:35:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 910278B945; Fri, 18 Oct 2013 20:35:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4F6C71BFAA2 for ; Fri, 18 Oct 2013 20:34:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FBC58A3BD for ; Fri, 18 Oct 2013 20:34:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OIOIvgAeZjlD for ; Fri, 18 Oct 2013 20:34:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id 922298BF68 for ; Fri, 18 Oct 2013 20:34:43 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id z12so4392651wgg.24 for ; Fri, 18 Oct 2013 13:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=akGzRWqmvpp/b2cxC0XMPE6YpBTqcw2ef/fBbC8H77E=; b=Qph+LadVfsmqCsKcZvahdDaOP7RTCI5SEeR2mo8knGTmUeD8jsHCP5MUv5XMwaq11f ZmIQFadzvbig7qIyoDq6zr/RYW/HOgubQGgxzDyjX7rOFWgrWI9L/m3PGCI5takDuBzP DXoqmRLzOmDW0H0wpGGKz0pYFb2hFQPoNjGqc+mzOj75ho1XDKhBGMFubzjm6AwNH6f2 5YO8wR/krj8qE7/lJyRtic9C2QADlU4yfzxdNpzoIxycbfHL0Wb82QYkng6liK6IkBHe xTT1eG2jqPBvMbLJ57OLUqikJM9tOuNSl3LIH2c0o0KrW8aYVCYIVxXgOSRX08KldagH 4D1w== X-Received: by 10.194.11.67 with SMTP id o3mr4366863wjb.0.1382128482182; Fri, 18 Oct 2013 13:34:42 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPSA id q17sm6788939wiv.10.2013.10.18.13.34.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:34:41 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Fri, 18 Oct 2013 22:31:27 +0200 Message-Id: <8ab1607b9a16453d4b4c7a4ca89af705e5e1c857.1382127504.git.s.martin49@gmail.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 03/12] support: trivial fixes (typos and minor rewording) in gen-manual-lists.py X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin --- Changes v1 -> v2: - split patch content - detail a bit more the commit message Signed-off-by: Samuel Martin --- support/scripts/gen-manual-lists.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py index 3568843..5c81e1d 100755 --- a/support/scripts/gen-manual-lists.py +++ b/support/scripts/gen-manual-lists.py @@ -107,7 +107,7 @@ def get_symbol_parents(item, root=None, enable_choice=False): parent = parent.get_parent() if isinstance(root, kconfiglib.Menu) or \ (enable_choice and isinstance(root, kconfiglib.Choice)): - parents.append("") # Dummy empty parrent to get a leading arrow -> + parents.append("") # Dummy empty parent to get a leading arrow -> parents.reverse() return parents @@ -126,15 +126,14 @@ def format_asciidoc_table(root, get_label_func, filter_func=lambda x: True, :param sub_menu: Output the column with the sub-menu path """ - def _format_entry(label, parents, sub_menu): + def _format_entry(item, parents, sub_menu): """ Format an asciidoc table entry. """ if sub_menu: - return "| {0:<40} <| {1}\n".format(label, " -> ".join(parents)) + return "| {0:<40} <| {1}\n".format(item, " -> ".join(parents)) else: - return "| {0:<40}\n".format(label) - + return "| {0:<40}\n".format(item) lines = [] for item in get_symbol_subset(root, filter_func): if not item.is_symbol() or not item.prompts: