From: Phil Sutter Subject: [nft PATCH RFC 2/2] nft.8: Make use of synopfragment in synopsis section Date: Thu, 17 Aug 2017 15:39:00 +0200 Message-ID: <20170817133900.21946-3-phil@nwl.cc> References: <20170817133900.21946-1-phil@nwl.cc> Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:54679 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbdHQNjZ (ORCPT ); Thu, 17 Aug 2017 09:39:25 -0400 In-Reply-To: <20170817133900.21946-1-phil@nwl.cc> Sender: netfilter-devel-owner@vger.kernel.org List-ID: This introduces an element of indirection to list common options in a separate place and allows to put each of the three invocation variants onto it's own line. Signed-off-by: Phil Sutter --- While I think readability has increased quite a bit, I don't like how docbook formats these references: Having a name at the reference point but not at the target is kind of unintuitive. Another issue is that I couldn't get it to print the repeat marker ('...') inside of the brackets when referencing OPTIONS - it would end up past the closing bracket, which appears wrong to my eye. So I used this double indirection as one would without that repeat marker, which didn't really improve it. --- doc/nft.xml | 112 ++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 64 insertions(+), 48 deletions(-) diff --git a/doc/nft.xml b/doc/nft.xml index 191a4c12f8487..2942849d8b15f 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -45,67 +45,83 @@ vi:ts=4 sw=4 nft - - - - - - - - - - - - - - - - - - - - - - - + + OPTIONS + + + + + filename + + + nft - - - - - directory + OPTIONS - - - - - - - filename - - - - - - - - - cmd - + + + nft - + + OPTIONS + + + cmd + + + + nft + - - + + + + OPTION + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + directory + + + -- 2.13.1