Skip to content

Commit

Permalink
In printout, add newline before inputTag
Browse files Browse the repository at this point in the history
  • Loading branch information
tlampen committed Mar 21, 2022
1 parent 767a838 commit 706d87f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ namespace DBoxMetadataHelper {
toAppend.clear();
for (unsigned int iPath = 0; iPath < pathsPrep.size(); ++iPath) {
std::string thisString = pathsPrep[iPath];

// skip userText since we want to see actual contents, not metadata
if (thisString.find("userText") == std::string::npos) {
// if the line to be added has less than colWidth chars append to current
if ((toAppend + thisString).length() < colWidth) {
// if the line to be added has less than colWidth chars, and is not a new tag ("inputTag"), append to current
if ((toAppend + thisString).length() < colWidth && thisString.find("inputTag") != 0) {
toAppend += thisString;
} else {
// else if the line exceeds colWidth chars, dump in the vector and resume from scratch
// else if the line exceeds colWidth chars or this is a new tag ("inputTag"), dump in the vector and resume from scratch
output.push_back(toAppend);
toAppend.clear();
toAppend += thisString;
Expand Down Expand Up @@ -615,10 +615,10 @@ namespace DBoxMetadataHelper {
toAppend.clear();
for (unsigned int iPath = 0; iPath < thePaths.size(); ++iPath) {
std::string thisString = thePaths[iPath];
// if the line to be added has less than colWidth chars append to current
// skip userText since we want to compare actual contents, not metadata
if (thisString.find("userText") == std::string::npos) {
// if the line to be added has less than colWidth chars append to current
if ((toAppend + thisString).length() < colWidth) {
// if the line to be added has less than colWidth chars, and is not a new tag ("inputTag"), append to current
if ((toAppend + thisString).length() < colWidth && thisString.find("inputTag") != 0) {
toAppend += thisString;
} else {
// else if the line exceeds colWidth chars, dump in the vector and resume from scrach
Expand Down

0 comments on commit 706d87f

Please sign in to comment.