Skip to content

Commit

Permalink
docs: Use the YAML multi-line indicator (#11552)
Browse files Browse the repository at this point in the history
In the Spark Quickstart guide, the initial docker-compose example specifies an
entrypoint script in a multi-line string. The string is mistakenly started with
the 'folded style' indicator `>`, which causes formatters to collapse it into
one line.

Changing to the 'literal style' indicator `|` resolves the issue and preserves
formatting.

Folded Style: <https://yaml.org/spec/1.2.2/#813-folded-style>
Literal Style: <https://yaml.org/spec/1.2.2/#812-literal-style>

Co-authored-by: Neodon <github.com/apache/[email protected]>
  • Loading branch information
neodon and Neodon authored Jan 13, 2025
1 parent f7d40f0 commit dc47b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/spark-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ services:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
- AWS_REGION=us-east-1
entrypoint: >
entrypoint: |
/bin/sh -c "
until (/usr/bin/mc config host add minio http://minio:9000 admin password) do echo '...waiting...' && sleep 1; done;
/usr/bin/mc rm -r --force minio/warehouse;
Expand Down

0 comments on commit dc47b85

Please sign in to comment.