Commit 07300b5e authored by User expired's avatar User expired
Browse files

Avoid to introduce trailing blank when merging lines

parent 2a1a33e8
Pipeline #40145 passed with stage
in 1 minute and 23 seconds
......@@ -44,6 +44,7 @@ s/[ \t]*\n[ \t]*}/}/ # At right curly bracket remove whitespace and newline.
s/[ \t]*\n[ \t]*/ /g # At other places replace space+newline by single space.
/[^},]$/N # If bib field is still incomplete, append next line.
//ba # Go to label to repeat this for multiple-line fields.
/ *\(},*\)$/s//\1/ # Remove whitespace before trailing curly bracket.
/}$/{N;s/\n *,/,/} # Remove newline between trailing curly bracket and comma.
' "$1"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment