From 96b8aa3c616ae0ae9ddb593a443832ade82b9a5c Mon Sep 17 00:00:00 2001 From: John Gardner Date: Wed, 22 Dec 2021 19:35:09 +1100 Subject: [PATCH] Improve highlighting of code samples --- SC1039.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/SC1039.md b/SC1039.md index 9710980..a139c54 100644 --- a/SC1039.md +++ b/SC1039.md @@ -5,9 +5,9 @@ ```sh for f in *.png do - cat << EOF + cat << HTML
- EOF + HTML done > index.html ``` @@ -16,11 +16,12 @@ done > index.html ```sh for f in *.png do - cat << EOF + cat << HTML
-EOF +HTML done > index.html ``` + ### Rationale: The here document delimiter will not be recognized if it is indented. @@ -34,4 +35,4 @@ Removing the indentation is preferred, since the script won't suddenly break if ### Exceptions: -If the line was supposed to be a literal part of the here document, consider choosing a less ambiguous token. \ No newline at end of file +If the line was supposed to be a literal part of the here document, consider choosing a less ambiguous token.