In the case of the ui5_html-element there should be an exception of that behavior. Even small HTML-text is hard to read without any formatting through linefeeds.
Code:
<div id="pos">Deine Position wird ermittelt...</div>
<script>navigator.geolocation.getCurrentPosition(function(position){ document.getElementById('pos').innerHTML = 'Latitude: '+position.coords.latitude+' / Longitude: '+position.coords.longitude;
}, function(){document.getElementById('pos').innerHTML = 'Deine Position konnte leider nicht ermittelt werden';
});
</script>
Regards,
Joachim