Program: 67136
Project: 67136
Buggy source:
/** 
 * Build the style of cell content.
 */
public void buildCellStyle(ICellContent cell,StringBuffer styleBuffer,boolean isHead,boolean fixedCellHeight){
  IStyle style=getElementStyle(cell);
  if (fixedReport && style != null) {
    HTMLEmitterUtil.buildOverflowStyle(styleBuffer,style,true);
  }
  IStyle cellMergedStyle=new CellMergedStyle(cell);
  if (null != style) {
    CSSValue display=style.getProperty(IStyle.STYLE_DISPLAY);
    if (IStyle.NONE_VALUE == display) {
      styleBuffer.append("String_Node_Str");
    }
  }
  if (null != style) {
    AttributeBuilder.buildFont(styleBuffer,style);
  }
  AttributeBuilder.buildFont(styleBuffer,cellMergedStyle);
  if (isHead) {
    String fontWeight=null;
    if (null != style) {
      fontWeight=style.getFontWeight();
    }
    String mergedFontWeight=cellMergedStyle.getFontWeight();
    if (null == fontWeight && null == mergedFontWeight) {
      IStyle cellComputedStyle=cell.getComputedStyle();
      if (null != cellComputedStyle) {
        fontWeight=cellComputedStyle.getFontWeight();
      }
      if (fontWeight == null) {
        fontWeight="String_Node_Str";
      }
      styleBuffer.append("String_Node_Str");
      styleBuffer.append(fontWeight);
      styleBuffer.append("String_Node_Str");
    }
  }
  if (null != style) {
    AttributeBuilder.buildMargins(styleBuffer,style);
    if (fixedCellHeight) {
      styleBuffer.append("String_Node_Str");
    }
 else {
      AttributeBuilder.buildPaddings(styleBuffer,style);
    }
  }
  AttributeBuilder.buildMargins(styleBuffer,cellMergedStyle);
  if (fixedCellHeight) {
    styleBuffer.append("String_Node_Str");
  }
 else {
    AttributeBuilder.buildPaddings(styleBuffer,cellMergedStyle);
  }
  buildCellBorder(cell,styleBuffer);
  if (null != style) {
    AttributeBuilder.buildBackground(styleBuffer,style,reportEmitter);
    AttributeBuilder.buildText(styleBuffer,style);
    AttributeBuilder.buildVisual(styleBuffer,style);
  }
  AttributeBuilder.buildBackground(styleBuffer,cellMergedStyle,reportEmitter);
  AttributeBuilder.buildText(styleBuffer,cellMergedStyle);
  AttributeBuilder.buildVisual(styleBuffer,cellMergedStyle);
}

Fixed version (ground truth):
/** 
 * Build the style of cell content.
 */
public void buildCellStyle(ICellContent cell,StringBuffer styleBuffer,boolean isHead,boolean fixedCellHeight){
  IStyle style=getElementStyle(cell);
  if (fixedReport) {
    HTMLEmitterUtil.buildOverflowStyle(styleBuffer,style,true);
  }
  IStyle cellMergedStyle=new CellMergedStyle(cell);
  if (null != style) {
    CSSValue display=style.getProperty(IStyle.STYLE_DISPLAY);
    if (IStyle.NONE_VALUE == display) {
      styleBuffer.append("String_Node_Str");
    }
  }
  if (null != style) {
    AttributeBuilder.buildFont(styleBuffer,style);
  }
  AttributeBuilder.buildFont(styleBuffer,cellMergedStyle);
  if (isHead) {
    String fontWeight=null;
    if (null != style) {
      fontWeight=style.getFontWeight();
    }
    String mergedFontWeight=cellMergedStyle.getFontWeight();
    if (null == fontWeight && null == mergedFontWeight) {
      IStyle cellComputedStyle=cell.getComputedStyle();
      if (null != cellComputedStyle) {
        fontWeight=cellComputedStyle.getFontWeight();
      }
      if (fontWeight == null) {
        fontWeight="String_Node_Str";
      }
      styleBuffer.append("String_Node_Str");
      styleBuffer.append(fontWeight);
      styleBuffer.append("String_Node_Str");
    }
  }
  if (null != style) {
    AttributeBuilder.buildMargins(styleBuffer,style);
    if (fixedCellHeight) {
      styleBuffer.append("String_Node_Str");
    }
 else {
      AttributeBuilder.buildPaddings(styleBuffer,style);
    }
  }
  AttributeBuilder.buildMargins(styleBuffer,cellMergedStyle);
  if (fixedCellHeight) {
    styleBuffer.append("String_Node_Str");
  }
 else {
    AttributeBuilder.buildPaddings(styleBuffer,cellMergedStyle);
  }
  buildCellBorder(cell,styleBuffer);
  if (null != style) {
    AttributeBuilder.buildBackground(styleBuffer,style,reportEmitter);
    AttributeBuilder.buildText(styleBuffer,style);
    AttributeBuilder.buildVisual(styleBuffer,style);
  }
  AttributeBuilder.buildBackground(styleBuffer,cellMergedStyle,reportEmitter);
  AttributeBuilder.buildText(styleBuffer,cellMergedStyle);
  AttributeBuilder.buildVisual(styleBuffer,cellMergedStyle);
}