String text_align = c.css.getStringProperty(containing_block,"text-align");
String text_align = c.css.getStringProperty(containing_block,"text-align",true);
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x,    Context c,  BlockBox block) {    //line_to_save.x = x;    // account for text-align    String text_align = c.css.getStringProperty(containing_block,"text-align");    //u.p("text-align = " + text_align);    if(text_align != null) {        if(text_align.equals("right")) {            //u.p("initial line: " + line_to_save);            //u.p("x = " + x + " width = " + width);            line_to_save.x = x + width - line_to_save.width;            //line_to_save.x = x + line_to_save.width - width;            //u.p("saved line: " + line_to_save);        }        if(text_align.equals("center")) {            line_to_save.x = x + (width - line_to_save.width)/2;        }    }    // set the y    line_to_save.y = prev_line.y + prev_line.height;    //if(c.getLeftTab().y >0) {    //u.p("line to save y = " + line_to_save.y);    //u.p("left tab y = " + c.getLeftTab().y);    if(line_to_save.y < c.getLeftTab().y) {        line_to_save.x+= c.getLeftTab().x;    //}    //if(c.getLeftTab().y > 0) {        //c.getLeftTab().y -= line_to_save.height;    }    //if(c.getLeftTab().y <= 0) {        //c.getLeftTab().x = 0;    //}    if(c.getRightTab().y >0) {        //line_to_save.x+= c.getRightTab().x;    //}    //if(c.getRightTab().y > 0) {        //c.getRightTab().y -= line_to_save.height;    }    //if(c.getRightTab().y <= 0) {        //c.getRightTab().x = 0;    //}    FontUtil.setupVerticalAlign(c,containing_block,line_to_save);    block.addChild(line_to_save);    //u.p("final saved line = " + line_to_save);    //u.p("block = " + block.hashCode());}