Skip to content

Commit 3e838cd

Browse files
author
Open Lowcode SAS
committed
Corrected Indentation
1 parent 29e3f00 commit 3e838cd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/org/openlowcode/tools/pdf/PDFMultiPageTable.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ private void constructorcontent(float leftmargin, float rightmargin, float[] col
168168

169169
}
170170

171-
172-
173171
/**
174172
* @param headertexts the list of header texts (should be consistent with the
175173
* column number)
@@ -211,7 +209,8 @@ public void addOneLineContent(String[] linecontent) {
211209
}
212210

213211
/**
214-
* Creates a new line without content. Content can then be added by setCellContent
212+
* Creates a new line without content. Content can then be added by
213+
* setCellContent
215214
*/
216215
public void addBlankLine() {
217216
CellText[] blankline = new CellText[columnnumber];
@@ -221,9 +220,10 @@ public void addBlankLine() {
221220
}
222221

223222
/**
224-
* @param cellcontent text to include in the cell
225-
* @param columnindex index of the column, starting with zero
226-
* @param showasnumber if true, will display as right aligned constant space number
223+
* @param cellcontent text to include in the cell
224+
* @param columnindex index of the column, starting with zero
225+
* @param showasnumber if true, will display as right aligned constant space
226+
* number
227227
*/
228228
public void setCellContent(String cellcontent, int columnindex, boolean showasnumber) {
229229
if (this.cellscontent.size() == 0)
@@ -276,7 +276,7 @@ private float getLineHeight(float leftinmm, float rightinmm, int lineindex) thro
276276
float maxheight = 0;
277277

278278
for (int i = 0; i < this.columnnumber; i++) {
279-
float columnwidth = this.columnwidthinmm[i];
279+
float columnwidth = this.columnwidthinmm[i];
280280
float cellheight = getCellHeight(columnwidth, lineindex, i);
281281
if (cellheight > maxheight)
282282
maxheight = cellheight;
@@ -371,7 +371,7 @@ private float printOneRow(PDFPage currentpage, int rowindex, float mmfromtopfors
371371
protected void printOneCell(PDFPage currentpage, int rowindex, int columnindex, float mmfromtopforsection,
372372
float currentleft, float currentcolumnwidth) throws IOException {
373373
CellText currenttextcell = this.cellscontent.get(rowindex)[columnindex];
374-
374+
375375
if (!currenttextcell.displayasNumber) {
376376
currentpage.drawTextInBox(currentleft, mmfromtopforsection, currentleft + currentcolumnwidth,
377377
currenttextcell.text, PDFPage.TEXTTYPE_PLAIN);
@@ -415,7 +415,7 @@ public PartialPrintFeedback printPartial(PDFPageBand pageband, float spaceleft,
415415
if (this.indexlastlineprinted == -1) {
416416
// check if space to print at least a header and a cell
417417
float topafterfirstdataline = currenttop + this.getHeadersHeight(leftinmm, rightinmm)
418-
+ (this.cellscontent.size() > 0 ? this.getLineHeight(leftinmm, rightinmm, 0) : 0);
418+
+ (this.cellscontent.size() > 0 ? this.getLineHeight(leftinmm, rightinmm, 0) : 0);
419419
// T-816 correction on line above
420420
if (topafterfirstdataline - mmfromtopforsection > spaceleft)
421421
return new PartialPrintFeedback(topafterfirstdataline, false);

0 commit comments

Comments
 (0)