summaryrefslogtreecommitdiff
path: root/src/roff/troff/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/roff/troff/input.cpp')
-rw-r--r--src/roff/troff/input.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 70d23fe4..f4a718b2 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004
+/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
@@ -3398,12 +3398,13 @@ int string_iterator::fill(node **np)
p = bp->s;
}
if (*p == '\0') {
- if (np)
+ if (np) {
*np = nd->copy();
- if (is_diversion())
- (*np)->div_nest_level = input_stack::get_div_level();
- else
- (*np)->div_nest_level = 0;
+ if (is_diversion())
+ (*np)->div_nest_level = input_stack::get_div_level();
+ else
+ (*np)->div_nest_level = 0;
+ }
nd = nd->next;
eptr = ptr = p + 1;
count--;