fix line counts when codeblocks are strippe