Some improvements to the toggle for wrapping lines in code blocks of test reports

+review REVIEW-5277