summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-12-17 13:27:07 +0000
committerwlemb <wlemb>2003-12-17 13:27:07 +0000
commitadefc1cf704fa2fd8574e5d87d4a3be825ffbc93 (patch)
tree396e22da9840490b4ca435fdd0f284c6a21fdeb0 /src
parent0680783e4a5283b091ba5e602cce8174de067acd (diff)
downloadgroff-adefc1cf704fa2fd8574e5d87d4a3be825ffbc93.tar.gz
Make \? transparent to end-of-sentence recognition.
* src/roff/troff/input.cc (non_interpreted_node): Add `ends_sentence' member function.
Diffstat (limited to 'src')
-rw-r--r--src/roff/troff/input.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 50039a18..5ee302d0 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4885,6 +4885,7 @@ public:
non_interpreted_node(const macro &);
int interpret(macro *);
node *copy();
+ int ends_sentence();
int same(node *);
const char *type();
int force_tprint();
@@ -4894,6 +4895,11 @@ non_interpreted_node::non_interpreted_node(const macro &m) : mac(m)
{
}
+int non_interpreted_node::ends_sentence()
+{
+ return 2;
+}
+
int non_interpreted_node::same(node *nd)
{
return mac == ((non_interpreted_node *)nd)->mac;