improved display a bit

reduced print call by 1 to speed up printing on screen.

reduced depths allowed.
This commit is contained in:
Vishal 2022-09-14 06:58:45 +05:30
parent 5b66070329
commit 0427aa5db3
3 changed files with 3 additions and 4 deletions

View File

@ -316,6 +316,7 @@ class EventData {
String strToPrint = "";
if(!topPost) {
strToPrint += "\n";
strToPrint += getDepthSpaces(depth);
strToPrint += " "; // in place of block for top posts
} else {

View File

@ -100,9 +100,9 @@ const int gNameLengthInPost = 12;
// after depth of maxDepthAllowed the thread is re-aligned to left by leftShiftThreadBy
const int gMinimumDepthAllowed = 2;
const int gMaximumDepthAllowed = 12;
const int gDefaultMaxDepth = 6;
const int gDefaultMaxDepth = 5;
int maxDepthAllowed = gDefaultMaxDepth;
const int leftShiftThreadsBy = 4;
const int leftShiftThreadsBy = 3;
int gMaxLenUnbrokenWord = 8; // lines are broken if space is at end of line for this number of places

View File

@ -246,8 +246,6 @@ class Tree {
int printTree(int depth, DateTime newerThan, bool topPost) {
int numPrinted = 0;
if( !topPost)
print("");
event.printEvent(depth, topPost);
numPrinted++;