mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2026-05-04 02:14:04 -05:00
build: Keep author names together.
This commit is contained in:
@@ -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\\\ /g')
|
||||
DELIM_NUM=$(grep -o ',' <<< "${DOCUMENT_Authors}" | wc -l)
|
||||
if [[ "${DELIM_NUM}" -eq 1 ]]; then
|
||||
DOCUMENT_Authors=$(echo "${DOCUMENT_Authors}" | sed -e 's/,//')
|
||||
|
||||
Reference in New Issue
Block a user