code: private void applyStyles(Document doc) {
  		Elements allStyledElements = doc.getElementsByAttribute(TEMP_STYLE_ATTR);
  
  		for (Element e : allStyledElements) {
  			String newStyle = e.attr(TEMP_STYLE_ATTR);
  			String oldStyle = e.attr(STYLE_ATTR);
  			e.attr(STYLE_ATTR, (newStyle + "; " + oldStyle).replaceAll(";+", ";").trim());
  			e.removeAttr(TEMP_STYLE_ATTR);
  		}
  	}
docs: Transfers styles from the <code>data-cssstyle</code> attribute to the
  <code>style</code> attribute.
  
  @param doc
  the html document