Skip to content
Snippets Groups Projects
Commit 9d1dfae2 authored by deuce's avatar deuce
Browse files

Fix last commit... the "beginning of a line" is after the prefix.

parent 422537ea
No related branches found
No related tags found
No related merge requests found
......@@ -376,14 +376,14 @@ fprintf(stderr, "CR\n");
continue;
}
else { /* Not a hard CR... add space if needed */
if(ocol > 1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
if(ocol > prefix_len+1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
linebuf[l++]=' ';
ocol++;
}
}
}
else { /* Not a hard CR... add space if needed */
if(ocol > 1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
if(ocol > prefix_len+1 && (l<1 || !isspace((unsigned char)linebuf[l-1]))) {
linebuf[l++]=' ';
ocol++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment