Skip to content

Commit

Permalink
Adding field comments to markdown report. Fixes #157
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Jun 11, 2019
1 parent 2b15d50 commit 5dc41d1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,20 @@ private void addTargetTableSection(Table targetTable) throws InvalidFormatExcept
comment.append(fieldToFieldMap.getComment().trim());
}
}
for (Field field : targetTable.getFields()) {
if (field.getName().equals(targetField.getName())) {
if (comment.length() != 0)
comment.append("\n");
comment.append(field.getComment().trim());
}
}
row.add("Source field", source.toString().trim());
row.add("Logic", logic.toString().trim());
row.add("Comment field", comment.toString().trim());
rows.add(row);
}


document.addTable(rows);
}
}
Expand Down

0 comments on commit 5dc41d1

Please sign in to comment.