[PATCH 10/10] doc: fix weirdness with option lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sphinx considers an option '-fsomething' as the option'f' with
parameter 'something'. This is often the right interpretation
but here the output in the manpage is really too strange.

Fix this with a little bit of sed magic.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 Documentation/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index 2e8cbdfd7..3955892ef 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -21,6 +21,6 @@ $(targets): conf.py Makefile
 	@$(SPHINXBUILD) -M  $@  "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
 
 %.1: %.rst man
-	@mv build/man/$@ $@
+	@sed '/^\.BI \\-[a-zA-Z]\\fB /s/\\fB //' < build/man/$@ > $@
 
 .PHONY: Makefile	# avoid circular deps with the catch-all rule
-- 
2.16.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux