From 3062b664d7dd0c104d1a77363c249621299c27b1 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Mon, 12 Dec 2016 16:05:45 -0500 Subject: [PATCH] build: Update to marsh 0.2.2. Fixes an issue where similarly named documents could both be marked selected in advanced navigation. --- marsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/marsh b/marsh index 6dfe156f..a8d66d5f 100755 --- a/marsh +++ b/marsh @@ -6,7 +6,7 @@ # https://github.com/bradleysepos/marsh NAME="marsh" -VERSION="0.2.1" +VERSION="0.2.2" SELF="${BASH_SOURCE[0]}" SELF_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P) SELF_DIR="${SELF_DIR:-$(pwd)}" @@ -1505,8 +1505,9 @@ function build_template { # build_template dest_dir target_dir document templat NAV_RELPATH="${NAV_RELPATH%/}" # drop trailing slash <"${DEST_DIR}/${TARGET_DIR}/${NAV}" sed -E \ -e 's|

([^<]+)

|

\1

|' \ - -e 's|(]*)>([^<>]+)|\2|g' \ + -e 's|(]*)>([^<>]+)|\2|g' \ > "${DEST}.${MARSH_UID}.temp" SUB=$(<"${DEST}.${MARSH_UID}.temp" sed -e ':a' -e '$!{N' -e 'ba' -e '}' -e 's/[&/\]/\\&/g' -e 's/\n/\\&/g') SUB=${SUB%$'\n'}