From de54d4735b57528754aa715c6ae2ea05f6e95577 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 30 Oct 2019 09:51:07 -0700 Subject: 5725 --- linkify/linkify.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linkify/linkify.cc') diff --git a/linkify/linkify.cc b/linkify/linkify.cc index 9557f256..ece50748 100644 --- a/linkify/linkify.cc +++ b/linkify/linkify.cc @@ -203,6 +203,10 @@ void replace_tags_in_file(const string& filename, const map& in out << c; at_start_of_line = false; } + else if (c == ')') { + out << c; + at_start_of_line = false; + } else { //? cerr << "rest\n"; if (c == ',' || c == ':') { @@ -213,7 +217,7 @@ void replace_tags_in_file(const string& filename, const map& in ostringstream out2; out2 << c; while (in2 >> c) { - if (isspace(c) || c == '<' || c == '"' || c == '\'' || c == '/' || c == ',' || c == ':') { // keep sync'd with other clauses above + if (isspace(c) || c == '<' || c == '"' || c == '\'' || c == '/' || c == ',' || c == ':' || c == '(' || c == ')') { // keep sync'd with other clauses above in2.putback(c); break; } -- cgit 1.4.1-2-gfad0