Skip to content

Commit

Permalink
prnt command: fixed list printing indention
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed May 9, 2020
1 parent b695c9b commit 67409e6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ private boolean isValue(String value) {
|| (value.startsWith("{") && value.endsWith("}"))
|| (value.startsWith("<") && value.endsWith(">"))
) {
return true;
return true;
} else if (!value.contains(" ") && !value.contains("\t")) {
return true;
}
Expand Down Expand Up @@ -1510,7 +1510,9 @@ private void highlightList(Map<String, Object> options
options.remove(Printer.MAX_COLUMN_WIDTH);
for (Object o : collection) {
AttributedStringBuilder asb = new AttributedStringBuilder().tabs(tabs);
asb.append("\t");
if (depth > 0) {
asb.append("\t");
}
if (options.containsKey(Printer.ROWNUM)) {
asb.styled(prntStyle.resolve(".rn"), row.toString()).append(":");
asb.append("\t");
Expand Down

0 comments on commit 67409e6

Please sign in to comment.