code: function gli_window_buffer_deaccumulate(win) {
      var conta = win.content;
      var stylename = StyleNameMap[win.accumstyle];
      var text, ls, ix, obj, arr;
  
      if (win.accum.length) {
          text = win.accum.join('');
          ls = text.split('\n');
          for (ix=0; ix<ls.length; ix++) {
              arr = undefined;
              if (ix == 0) {
                  if (ls[ix]) {
                      if (conta.length == 0) {
                          arr = [];
                          conta.push({ content: arr, append: true });
                      }
                      else {
                          obj = conta[conta.length-1];
                          if (!obj.content) {
                              arr = [];
                              obj.content = arr;
                          }
                          else {
                              arr = obj.content;
                          }
                      }
                  }
              }
              else {
                  if (ls[ix]) {
                      arr = [];
                      conta.push({ content: arr });
                  }
                  else {
                      conta.push({ });
                  }
              }
              if (arr !== undefined) {
                  if (!win.accumhyperlink) {
                      arr.push(stylename);
                      arr.push(ls[ix]);
                  }
                  else {
                      arr.push({ style:stylename, text:ls[ix], hyperlink:win.accumhyperlink });
                  }
              }
          }
      }
  
      win.accum.length = 0;
      win.accumstyle = win.style;
      win.accumhyperlink = win.hyperlink;
  }
docs: /* Take the accumulation of strings (since the last style change) and
  assemble them into a buffer window update. This must be called
  after each style change; it must also be called right before
  GlkOte.update(). (Actually we call it right before win.accum.push
  if the style has changed -- there's no need to call for *every* style
  change if no text is being pushed out in between.)