Fixed a bug of code block due to the multiple-line span tags generated by highlightjs.
This patch makes sure all tags are enclosed in each line.