code: function(text/*:string*/)/*:string*/ {
  		return escapexml(text)
  			.replace(/  +/g, function($$){return '<text:s text:c="'+$$.length+'"/>';})
  			.replace(/\t/g, "<text:tab/>")
  			.replace(/\n/g, "<text:line-break/>")
  			.replace(/^ /, "<text:s/>").replace(/ $/, "<text:s/>");
  	}
docs: /* 6.1.2 White Space Characters