FIX: Code blocks were trimming leading spaces sometimes when they should have only
trimmed trailing spaces.