diff options
Diffstat (limited to 'support/latexindent/LatexIndent/Sentence.pm')
-rw-r--r-- | support/latexindent/LatexIndent/Sentence.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/latexindent/LatexIndent/Sentence.pm b/support/latexindent/LatexIndent/Sentence.pm index 9a7f32e7db..465f2310b3 100644 --- a/support/latexindent/LatexIndent/Sentence.pm +++ b/support/latexindent/LatexIndent/Sentence.pm @@ -49,7 +49,7 @@ sub one_sentence_per_line { { if ($yesNo) { if ( $sentencesFollowEachPart eq "par" ) { - $sentencesFollowEachPart = qr/\R?\\par/s; + $sentencesFollowEachPart = qr/\R?\\par(?![a-zA-Z])/s; } elsif ( $sentencesFollowEachPart eq "blankLine" ) { $sentencesFollowEachPart = qr/ @@ -207,7 +207,7 @@ sub one_sentence_per_line { # similarly for \par if ( ${ ${ $mainSettings{modifyLineBreaks}{oneSentencePerLine} }{sentencesFollow} }{par} ) { - $notWithinSentence .= "|" . qr/(?:\R?\\par)/s; + $notWithinSentence .= "|" . qr/(?:\R?\\par(?![a-zA-Z]))/s; } my $sentenceRegEx = qr/ |