Skip to content

Commit 6afa4a8

Browse files
committed
Empty lines rule fix.
1 parent 141084b commit 6afa4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public class CSharpToCppTransformer : TextTransformer
506506
(new Regex(@"(\S[\r\n]{1,2})?[\r\n]+class"), "$1class", 0),
507507
// \n\n
508508
// \n
509-
(new Regex(@"\r?\n[ \t]*\r?\n"), Environment.NewLine, 50),
509+
(new Regex(@"\r?\n[ \t]*\r?\n[ \t]*\r?\n"), Environment.NewLine + Environment.NewLine, 50),
510510
}.Cast<ISubstitutionRule>().ToList();
511511

512512
public CSharpToCppTransformer(IList<ISubstitutionRule> extraRules) : base(FirstStage.Concat(extraRules).Concat(LastStage).ToList()) { }

0 commit comments

Comments
 (0)