zsh-workers
 help / color / mirror / code / Atom feed
* A possible fix of an indentation problem in manages
@ 2014-03-17 16:01 Jun T.
  2014-03-17 16:18 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Jun T. @ 2014-03-17 16:01 UTC (permalink / raw)
  To: zsh-workers

This is a reply to old posts X-seq: 29369, 29370
http://www.zsh.org/mla/workers/2011/msg00804.html
http://www.zsh.org/mla/workers/2011/msg00805.html

As pointed out in the above post, indentation of the text in the
description of _arguments in zshcompsys.1 has a problem. I think
that the place where the problem starts is:

                            ....
                            the  first  optarg  that  follows the optspec; see
                            below.

              It is possible for options with a literal `+' or `=' to  appear,
              but that character must be quoted, for example `-\+'. 


Here, the indentation level is reduced by 2, but I think it should
be reduce only by 1. 
This is due to that ENDITEM is redefined to emit '.RE' and used twice
by the macros item() and enditem().

A similar problem exists also in zshzle.1 (description of bindkey)
and zshmodule.1 (zparseopt).

The following patch *seems* to fix the problem, at least for the current
manpages. But even if it works, there may be a better way than to
re-re-define ENDITEM...


diff --git a/Doc/zman.yo b/Doc/zman.yo
index 8d17f78..3329cb9 100644
--- a/Doc/zman.yo
+++ b/Doc/zman.yo
@@ -110,7 +110,7 @@ def(startitem)(0)(\
 def(enditem)(0)(\
   ENDITEM()\
   STDPAR()\
-  +redef(ENDITEM)(0)(NOTRANS(.RE)STDPAR())\
+  +redef(ENDITEM)(0)(NOTRANS(.RE)STDPAR()redef(ENDITEM)(0)(CMT()))\
 )
 def(item)(2)(\
   NOTRANS(.TP)+NL()\
@@ -121,7 +121,7 @@ def(item)(2)(\
   +redef(PARAGRAPH)(0)(\
     NL()NOTRANS(.RS)+NL()NOTRANS(.PP)+NL()\
     STDPAR()\
-    +redef(ENDITEM)(0)(NOTRANS(.RE)STDPAR())\
+    +redef(ENDITEM)(0)(NOTRANS(.RE)STDPAR()redef(ENDITEM)(0)(CMT()))\
   )\
   ARG2\
   +ENDITEM()\




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A possible fix of an indentation problem in manages
  2014-03-17 16:01 A possible fix of an indentation problem in manages Jun T.
@ 2014-03-17 16:18 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2014-03-17 16:18 UTC (permalink / raw)
  To: zsh-workers

On Tue, 18 Mar 2014 01:01:32 +0900
"Jun T." <takimoto-j@kba.biglobe.ne.jp> wrote:
> As pointed out in the above post, indentation of the text in the
> description of _arguments in zshcompsys.1 has a problem.
> 
> The following patch *seems* to fix the problem, at least for the current
> manpages. But even if it works, there may be a better way than to
> re-re-define ENDITEM...

Looks OK here.  Let's suck it and see; I can't imagine me staring at the
problem is going to provide anything better.

pws


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-17 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-17 16:01 A possible fix of an indentation problem in manages Jun T.
2014-03-17 16:18 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).