build: Keep author names together.

This commit is contained in:
Bradley Sepos
2016-04-18 13:52:26 -04:00
parent 65407d1594
commit fb4da5d27a

View File

@@ -81,7 +81,7 @@ function build_source {
fi
# process authors
DOCUMENT_Authors=$(echo "${DOCUMENT_Authors}" | sed -e 's/,[^ ]/, /g' -e 's/[ ]*<[^,]*>//g' -e 's/\(.*\), /\1, and /')
DOCUMENT_Authors=$(echo "${DOCUMENT_Authors}" | sed -e 's/,[^ ]/, /g' -e 's/[ ]*<[^,]*>//g' -e 's/\(.*\), /\1, and /' -e 's/\([^,]\) /\1\\\&nbsp;/g')
DELIM_NUM=$(grep -o ',' <<< "${DOCUMENT_Authors}" | wc -l)
if [[ "${DELIM_NUM}" -eq 1 ]]; then
DOCUMENT_Authors=$(echo "${DOCUMENT_Authors}" | sed -e 's/,//')