Skip to content

Commit

Permalink
Comment sed.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Mar 8, 2024
1 parent 137ebbc commit 24ef8f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sed.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

sed -e '/^ *$/d' -e 's/ / /g' -e 's/–/-/g' -e "s/’/'/g"
sed -e '/^ *$/d' `# Whitespace-only or empty lines` \
-e 's/ / /g' `# nbsp to space` \
-e 's/–/-/g' `# endash to hyphen` \
-e "s/’/'/g" `# apostrophe to single quote` \
-e 's/\s—\s/—/g' `# collapse whitespace around emdash`

0 comments on commit 24ef8f1

Please sign in to comment.