Browse Source

Elaborate more in the docstring

Alois Mahdal 5 years ago
parent
commit
4750ad76f3
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/include-sh/coerce.sh

+ 3
- 0
src/include-sh/coerce.sh View File

27
     #
27
     #
28
     # Replace non-printable characters with $COERCE__REPCHAR
28
     # Replace non-printable characters with $COERCE__REPCHAR
29
     #
29
     #
30
+    # Keep only characters that have grapgical representation ([:graph:] POSIX
31
+    # class), newline, tab and space.  Replace rest with $COERCE__REPCHAR.
32
+    #
30
     perl -CS -Mutf8 -pe "s|[^[:graph:] \t\n]|$COERCE__REPCHAR|g"
33
     perl -CS -Mutf8 -pe "s|[^[:graph:] \t\n]|$COERCE__REPCHAR|g"
31
 }
34
 }
32
 
35