diff options
| -rw-r--r-- | smu.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -219,6 +219,12 @@ dolineprefix(const char *begin, const char *end, int newblock) { p += l; } } + + /* Skip empty lines in block */ + while(*(buffer + j - 1) == '\n') { + j--; + } + ADDC(buffer, j) = '\0'; if(lineprefix[i].process) process(buffer, buffer + strlen(buffer), lineprefix[i].process >= 2); |