printer_tree BUGFIX of '|' in mount-point nodes
diff --git a/src/printer_tree.c b/src/printer_tree.c
index 8ac0dc2..36daa4d 100644
--- a/src/printer_tree.c
+++ b/src/printer_tree.c
@@ -4558,7 +4558,7 @@
trm_lysp_tree_ctx(mod, pc->out, pc->max_line_length, 1, refs, &tmppc, &tmptc);
}
/* Decide whether to print the symbol '|'. */
- tmpwr = (mod == last_mod) ? wr : trp_wrapper_set_mark_top(wr);
+ tmpwr = (mod == last_mod) && !refs ? wr : trp_wrapper_set_mark_top(wr);
/* Print top-level nodes of mounted module which are denoted by the symbol '/'. */
trb_print_family_tree(tmpwr, &tmppc, &tmptc);
}
@@ -4566,6 +4566,7 @@
/* Print parent-referenced nodes which are denoted by the symbol '@'. */
for (i = 0; refs && i < refs->count; i++) {
trm_lysc_tree_ctx(refs->snodes[i]->module, pc->out, pc->max_line_length, 1, refs, &tmppc, &tmptc);
+ tmpwr = ((i + 1) == refs->count) ? wr : trp_wrapper_set_mark_top(wr);
trb_print_parents(refs->snodes[i], &tmpwr, pc, &tmptc);
}