summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/Environment.pm
diff options
context:
space:
mode:
Diffstat (limited to 'support/latexindent/LatexIndent/Environment.pm')
-rw-r--r--support/latexindent/LatexIndent/Environment.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/latexindent/LatexIndent/Environment.pm b/support/latexindent/LatexIndent/Environment.pm
index 401cbecbee..c658acedf2 100644
--- a/support/latexindent/LatexIndent/Environment.pm
+++ b/support/latexindent/LatexIndent/Environment.pm
@@ -51,7 +51,7 @@ sub construct_environments_regexp{
(
(?: # cluster-only (), don't capture
(?! # don't include \begin in the body
- (?:\\begin) # cluster-only (), don't capture
+ (?:\\begin\{) # cluster-only (), don't capture
). # any character, but not \\begin
)*? # non-greedy
(\R*)? # possible line breaks (into $5)