about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-11-13 01:02:37 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-11-13 01:03:38 +0900
commitd5ba08af4933fdef596f5151b3e903868d352f65 (patch)
tree179e5748b8ccb7b5475ea1036f264c203240110f
parentff85c8b1c99bd655a64564fc8beba3167d229c23 (diff)
downloadzsh-d5ba08af4933fdef596f5151b3e903868d352f65.tar.gz
zsh-d5ba08af4933fdef596f5151b3e903868d352f65.tar.xz
zsh-d5ba08af4933fdef596f5151b3e903868d352f65.zip
unposted: a few cosmetic format fixes in docs
-rw-r--r--ChangeLog4
-rw-r--r--Doc/Zsh/builtins.yo3
-rw-r--r--Doc/Zsh/contrib.yo5
-rw-r--r--Doc/Zsh/func.yo3
-rw-r--r--Doc/Zsh/grammar.yo3
-rw-r--r--Doc/Zsh/mod_pcre.yo8
-rw-r--r--Doc/Zsh/params.yo4
-rw-r--r--Doc/Zsh/zle.yo5
8 files changed, 15 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fd4d9908..46bb02f48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
 	* 37090: Doc/zman.yo, Doc/ztexi.yo: handle blank lines correctly
 	in yodl macro example()
 
+	* unposted: Doc/Zsh/builtins.yo, Doc/Zsh/contrib.yo,
+	Doc/Zsh/func.yo, Doc/Zsh/grammar.yo, Doc/Zsh/mod_pcre.yo,
+	Doc/Zsh/params.yo, Doc/Zsh/zle.yo: cosmetic format fix
+
 2015-11-12  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 37096: Src/subst.c, Test/D04parameter.ztst: make top-level
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 985e7267f..49806e4d8 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -558,8 +558,7 @@ For example:
 
 example(emulate sh -c 'fni+LPAR()RPAR() { setopt cshnullglob; }
 fno+LPAR()RPAR() { fni; }'
-fno
-)
+fno)
 
 The two functions tt(fni) and tt(fno) are defined with sticky tt(sh)
 emulation.  tt(fno) is then executed, causing options associated
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index f74f7d709..07a5eb08e 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -1755,7 +1755,7 @@ a customised bookmark string for the tt(hg) backend.
 Again, we start off by registering a function:
 example(zstyle ':vcs_info:hg+gen-hg-bookmark-string:*' hooks hgbookmarks)
 
-And then we define the `tt(+vi-hgbookmarks) function:
+And then we define the `tt(+vi-hgbookmarks)' function:
 example(
 function +vi-hgbookmarks+LPAR()RPAR() {
     # The default is to connect all bookmark names by
@@ -1780,8 +1780,7 @@ function +vi-hgbookmarks+LPAR()RPAR() {
     # something other than the default zero:
     ret=1
     return 0
-}
-)
+})
 
 Some longer examples and code snippets which might be useful are available in
 the examples file located at Misc/vcs_info-examples in the Zsh source
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo
index ace0a4051..d500a78ae 100644
--- a/Doc/Zsh/func.yo
+++ b/Doc/Zsh/func.yo
@@ -111,8 +111,7 @@ arguments, at the end.
 For example, suppose the autoload file tt(func) contains
 
 example(func+LPAR()RPAR() { print This is func; }
-print func is initialized
-)
+print func is initialized)
 
 then `tt(func; func)' with tt(KSH_AUTOLOAD) set will produce both messages
 on the first call, but only the message `tt(This is func)' on the second
diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo
index 83968fedf..2a76964f3 100644
--- a/Doc/Zsh/grammar.yo
+++ b/Doc/Zsh/grammar.yo
@@ -421,8 +421,7 @@ works, but
 
 example(if true {  # Does not work!
   print yes
-}
-)
+})
 
 does em(not), since the test is not suitably delimited.
 )
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo
index d6b4bd15d..c2817f519 100644
--- a/Doc/Zsh/mod_pcre.yo
+++ b/Doc/Zsh/mod_pcre.yo
@@ -54,8 +54,7 @@ used to implement the "find all non-overlapping matches" functionality.
 
 A simple example of "find all non-overlapping matches":
 
-example(
-string="The following zip codes: 78884 90210 99513"
+example(string="The following zip codes: 78884 90210 99513"
 pcre_compile -m "\d{5}"
 accum=()
 pcre_match -b -- $string
@@ -64,10 +63,7 @@ while [[ $? -eq 0 ]] do
     accum+=$MATCH
     pcre_match -b -n $b[2] -- $string
 done
-print -l $accum
-
-
-)
+print -l $accum)
 )
 enditem()
 
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index ba2856b34..b896e2d70 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -383,9 +383,7 @@ as part of an arithmetic expression in an ordinary subscript.
 To avoid subscript parsing limitations in assignments to associative array
 elements, use the append syntax:
 
-example(
-   aa+=('key with "*strange*" characters' 'value string')
-)
+example(aa+=('key with "*strange*" characters' 'value string'))
 
 The basic rule to remember when writing a subscript expression is that all
 text between the opening `tt([)' and the closing `tt(])' is interpreted
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 05bb14829..7047b43d9 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2274,6 +2274,7 @@ the command line or key bindings temporarily.
 
 
 The following widget, tt(caps-lock), serves as an example.
+
 example(self-insert-ucase+LPAR()RPAR() {
   LBUFFER+=${(U)KEYS[-1]}
 }
@@ -2293,8 +2294,8 @@ zle -D save-caps-lock
 
 (( stat )) && zle send-break
 
-return $stat
-)
+return $stat)
+
 This causes typed letters to be inserted capitalised until either
 tt(accept-line) (i.e. typically the return key) is typed or the
 tt(caps-lock) widget is invoked again; the later is handled by saving