-
- if (delsp && spaces && space_len > 0) {
- /* here, we need to character-wise step through the line
- * to eliminate all spaces which were trailing due to DelSp */
- for (i = 0; i < str_len (oldpos); i++) {
- if (oldpos[i] == ' ' && spaces[&(oldpos[i])-line] != 0) {
- debug_print (4, ("f=f: DelSp: spaces[%d] forces space removal\n",
- &(oldpos[i])-line));
- continue;
- }
- /* print space at oldpos[i] if it was non-trailing */
- state_putc (oldpos[i], s);
- }
- } else
- /* for no DelSp, just do whole line as per usual */
- state_puts (oldpos, s);