select attribute value problem after upgrading to 5.4.1

Permalink
so i just upgraded and now my select attribute is adding a return to my output.

$section = $c->getCollectionAttributeValue('section');

<body class="<?= $section ?>">

this use to output <body class="sectionvaluehere"> but now its doing this:

<body class="sectionvaluehere
">

i can use trim but thats sort of annoying...