Skip to content

Add "literal scalar" to YAML #28

Description

@CompSciFutures

Preserving Line Breaks: The Literal Scalar (|)If you are writing a script, code block, or set of multi-line terminal commands where newlines and spacing must be preserved exactly, use the pipe (|) symbol.yamlscript: |
#!/bin/bash
echo "Starting build process..."
cd /var/www/html
git pull origin main
npm install && npm run build

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions