From 5a9505f48aeb252d1a316b3cecc0b1da9d510085 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 21 Oct 1999 13:26:48 +0000 Subject: Now handle \\, \{ and \} in paragraph keywords [originally from svn r241] --- input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index d5c4685..1f40912 100644 --- a/input.c +++ b/input.c @@ -557,7 +557,9 @@ static void read_file(paragraph ***ret, input *in, index *idx) { /* FIXME: there will be bugs if anyone specifies an * empty keyword (\foo{}), so trap this case. */ while (dtor(t), t = get_token(in), - t.type == tok_word || t.type == tok_white) { + t.type == tok_word || + t.type == tok_white || + (t.type == tok_cmd && t.cmd == c__escaped)) { if (t.type == tok_white) rdadd(&rs, ' '); else -- cgit v1.1