remove trailing space from code-blocks