Skip to content

Commit ad51757

Browse files
authored
chore: fix docs generating odd newline symbols (#2745)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
1 parent ef8d0db commit ad51757

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/checluster_docs_gen.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ parse_section() {
159159
else
160160
DESCR_BUFF=$(echo "$section" | yq -M '.properties.'"$PROP"'.description')
161161
fi
162-
DESCR_BUFF="${DESCR_BUFF:1:-1}" # Removes first and last quotes "
163-
DESCR_BUFF="${DESCR_BUFF//\\\"/\"}" # Removes escaped quotes "
164-
DESCR_BUFF="${DESCR_BUFF//:/\\:}" # Escapes colons
162+
DESCR_BUFF="${DESCR_BUFF:1:-1}" # Removes first and last quotes "
163+
DESCR_BUFF="${DESCR_BUFF//\\\"/\"}" # Removes escaped quotes "
164+
DESCR_BUFF="${DESCR_BUFF//:/\\:}" # Escapes colons
165+
DESCR_BUFF="${DESCR_BUFF//\\n/ }" # Replace newlines with spaces
165166
DESCR_BUFF="$(sed 's|Eclipse Che|{prod-short}|g' <<<$DESCR_BUFF)"
166167
DESCR_BUFF="$(sed 's|Che |{prod-short} |g' <<<$DESCR_BUFF)"
167168

0 commit comments

Comments
 (0)