···2525 msg="";
2626 while read text_line; do
2727 if [[ "$text_line" == "message-end" ]]; then
2828+ msg=${msg#?} # remove first newline
2829 break
2930 fi
3031 msg+=$'\n'"$text_line"
···3536 item_doc="";
3637 while read text_line; do
3738 if [[ "$text_line" == "item-end" ]]; then
3939+ item_doc=${item_doc#?} # remove first newline
3840 break
3941 fi
4040- if [[ -n "$item_doc" ]]; then
4141- item_doc+=$'\n'"$text_line"
4242- else
4343- item_doc=$text_line
4444- fi
4242+ item_doc+=$'\n'"$text_line"
4543 done
4644 # Sadly it seems bash does not support doc strings, so we only
4745 # add item to to the reply. If you know any better get in touch.
+8-12
vendor/opam/cmdliner/src/tool/cmdliner_data.ml
···2626 msg="";
2727 while read text_line; do
2828 if [[ "$text_line" == "message-end" ]]; then
2929+ msg=${msg#?} # remove first newline
2930 break
3031 fi
3132 msg+=$'\n'"$text_line"
···3637 item_doc="";
3738 while read text_line; do
3839 if [[ "$text_line" == "item-end" ]]; then
4040+ item_doc=${item_doc#?} # remove first newline
3941 break
4042 fi
4141- if [[ -n "$item_doc" ]]; then
4242- item_doc+=$'\n'"$text_line"
4343- else
4444- item_doc=$text_line
4545- fi
4343+ item_doc+=$'\n'"$text_line"
4644 done
4745 # Sadly it seems bash does not support doc strings, so we only
4846 # add item to to the reply. If you know any better get in touch.
···9593 msg="";
9694 while read text_line; do
9795 if [[ "$text_line" == "message-end" ]]; then
9696+ msg=${msg#?} # remove first newline
9897 break
9998 fi
10099 msg+=$'\n'"$text_line"
···105104 item_doc="";
106105 while read -r text_line; do
107106 if [[ "$text_line" == "item-end" ]]; then
107107+ item_doc=${item_doc#?} # remove first space
108108 break
109109 fi
110110- if [[ -n "$item_doc" ]]; then
111111- # Sadly it seems impossible to make multiline
112112- # doc strings. Get in touch if you know any better.
113113- item_doc+=" $text_line"
114114- else
115115- item_doc="$text_line"
116116- fi
110110+ # Sadly it seems impossible to make multiline
111111+ # doc strings. Get in touch if you know any better.
112112+ item_doc+=" $text_line"
117113 done
118114 # Handle glued forms, the completion item is the full option
119115 if [[ "$group" == "Values" ]]; then
+5-7
vendor/opam/cmdliner/src/tool/zsh-completion.sh
···2222 msg="";
2323 while read text_line; do
2424 if [[ "$text_line" == "message-end" ]]; then
2525+ msg=${msg#?} # remove first newline
2526 break
2627 fi
2728 msg+=$'\n'"$text_line"
···3233 item_doc="";
3334 while read -r text_line; do
3435 if [[ "$text_line" == "item-end" ]]; then
3636+ item_doc=${item_doc#?} # remove first space
3537 break
3638 fi
3737- if [[ -n "$item_doc" ]]; then
3838- # Sadly it seems impossible to make multiline
3939- # doc strings. Get in touch if you know any better.
4040- item_doc+=" $text_line"
4141- else
4242- item_doc="$text_line"
4343- fi
3939+ # Sadly it seems impossible to make multiline
4040+ # doc strings. Get in touch if you know any better.
4141+ item_doc+=" $text_line"
4442 done
4543 # Handle glued forms, the completion item is the full option
4644 if [[ "$group" == "Values" ]]; then