Skip to content

Commit

Permalink
chore: fix docs generating odd newline symbols (#2745)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov authored Jun 11, 2024
1 parent ef8d0db commit ad51757
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/checluster_docs_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ parse_section() {
else
DESCR_BUFF=$(echo "$section" | yq -M '.properties.'"$PROP"'.description')
fi
DESCR_BUFF="${DESCR_BUFF:1:-1}" # Removes first and last quotes "
DESCR_BUFF="${DESCR_BUFF//\\\"/\"}" # Removes escaped quotes "
DESCR_BUFF="${DESCR_BUFF//:/\\:}" # Escapes colons
DESCR_BUFF="${DESCR_BUFF:1:-1}" # Removes first and last quotes "
DESCR_BUFF="${DESCR_BUFF//\\\"/\"}" # Removes escaped quotes "
DESCR_BUFF="${DESCR_BUFF//:/\\:}" # Escapes colons
DESCR_BUFF="${DESCR_BUFF//\\n/ }" # Replace newlines with spaces
DESCR_BUFF="$(sed 's|Eclipse Che|{prod-short}|g' <<<$DESCR_BUFF)"
DESCR_BUFF="$(sed 's|Che |{prod-short} |g' <<<$DESCR_BUFF)"

Expand Down

0 comments on commit ad51757

Please sign in to comment.