code: function (text) {
              var self = this;
              if (!self.inPre) {
                  // collapse whitespace
                  text = collapseWhitespace(text);
              }
              self.append(text);
          }
docs: note : pre is special