From 25de3f5dce184510531d6f69c6dfce827ff3e677 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 31 Dec 2014 09:03:56 -0500 Subject: [PATCH] wrapcomments paren handling Correctly handle an opening parenthesis directly in front of @ref and fix the one place we use it. --- contrib/utilities/wrapcomments.py | 2 +- include/deal.II/grid/grid_generator.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/utilities/wrapcomments.py b/contrib/utilities/wrapcomments.py index 0dc93b9c66..9dc12dc78a 100755 --- a/contrib/utilities/wrapcomments.py +++ b/contrib/utilities/wrapcomments.py @@ -117,7 +117,7 @@ def format_block(lines, infostr=""): out.extend(wrap_block(remove_junk(curlines), start)) curlines=[] thisline = remove_junk([lines[idx]])[0] - if not thisline.startswith("@ref"): + if not thisline.startswith("@ref") and not thisline.startswith("(@ref"): print ("%s warning %s not at start of line"%(infostr, "@ref"), file=sys.stderr) # format: diff --git a/include/deal.II/grid/grid_generator.h b/include/deal.II/grid/grid_generator.h index 64afc54f75..a4e7fd64a4 100644 --- a/include/deal.II/grid/grid_generator.h +++ b/include/deal.II/grid/grid_generator.h @@ -37,8 +37,8 @@ template class SparseMatrix; * triangulations for some basic geometries. * * Some of these functions receive a flag @p colorize. If this is set, parts - * of the boundary receive different boundary indicators ( - * @ref GlossBoundaryIndicator), + * of the boundary receive different boundary indicators + * (@ref GlossBoundaryIndicator), * allowing them to be distinguished for the purpose of attaching geometry * objects and evaluating different boundary conditions. * -- 2.39.5