From 5d967b9fe891798ca0b782da6c8eeb93cd777084 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 12 May 2022 20:22:10 -0300 Subject: bin/{open,print}: Fix indentation of heredoc strings --- bin/open | 24 ++++++++++++------------ bin/print | 38 +++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/bin/open b/bin/open index df1ad56..d2eedd3 100755 --- a/bin/open +++ b/bin/open @@ -3,26 +3,26 @@ set -eu usage() { cat <<-'EOF' - Usage: - open FILE... - open -h -EOF + Usage: + open FILE... + open -h + EOF } help() { cat <<-'EOF' - Options: - -h, --help show this message + Options: + -h, --help show this message - Examples: + Examples: - Open an HTML file on the current $BROWSER: - open index.html + Open an HTML file on the current $BROWSER: + $ open index.html - Open multiple PDF files (with zathura): - open *.pdf -EOF + Open multiple PDF files (with zathura): + $ open *.pdf + EOF } for flag in "$@"; do diff --git a/bin/print b/bin/print index 735d8ba..e0d3d6e 100755 --- a/bin/print +++ b/bin/print @@ -3,35 +3,35 @@ set -eu usage() { cat <<-'EOF' - Usage: - print [-d] [-q QUALITY] [FILE...] - print -h -EOF + Usage: + print [-d] [-q QUALITY] [FILE...] + print -h + EOF } help() { cat <<-'EOF' - Options: - -d print duplex/double-sided - -q QUALITY choose the print quality, either: - low, medium (default) or high. - -h, --help show this message + Options: + -d print duplex/double-sided + -q QUALITY choose the print quality, either: + low, medium (default) or high. + -h, --help show this message - Examples: + Examples: - Print the given PostScript file with default quality: - $ print f1.ps + Print the given PostScript file with default quality: + $ print f1.ps - Print multiple PDF files with high quality: - $ print -dq high *.pdf + Print multiple PDF files with high quality: + $ print -dq high *.pdf - Print the file from STDIN, double-sided: - $ print -d < f2.ps + Print the file from STDIN, double-sided: + $ print -d < f2.ps - Print multiple source code files: - $ print src/*.{c,h} -EOF + Print multiple source code files: + $ print src/*.{c,h} + EOF } mkdtemp() { -- cgit v1.2.3