BR='
'
-unescape() {
- local unescape='s;(^(\\\\)*|[^\\](\\\\)*)\\n;\1\n;g; s;\\(.);\1;g'
- if [ $# -eq 0 ]; then
- sed -E "$unescape"
- else
- printf %s "$*" \
- | sed -E "$unescape"
- fi
-}
-
pdi_load() {
# normalise PDI file for processing with pdi_* functions
# functions in this library can only be applied to normalised data