remove unwanted empty lines at the end of fenced code blocks generated by <pre>