client/locations-list-map.js
// Turns a string with embedded \n characters into an Array of text nodes separated by <br>
Turns a string with embedded \n characters into an Array of text nodes separated by 
Turns a string with embedded \ n characters into an Array of text nodes separated by
function multilineStringToNodes(input) {
  const textNodes = input.split('\n').map((s) => ctn(s));
  const returnedNodes = [];
  textNodes.forEach((e) => {
    returnedNodes.push(e);
    returnedNodes.push(document.createElement('br'));
  });
  return returnedNodes.slice(0, -1);
}
function multilineStringToNodes ( input ) { const textNodes = input . split ( '\n' ) . map ( ( s ) => ctn ( s ) ) ; const returnedNodes = [ ] ; textNodes . forEach ( ( e ) => { returnedNodes . push ( e ) ; returnedNodes . push ( document . createElement ( 'br' ) ) ; } ) ; return returnedNodes . slice ( 0 , - 1 ) ; }
Turns a string with embedded \n characters into an Array of text nodes separated by <br>
Turns a string with embedded \ n characters into an Array of text nodes separated by <br >