Skip to content

Commit 0a4a16f

Browse files
committed
[BUGFIX,ISSUE-26] Dump with If blocks now are written correctly
This bugfix fixes odiszapc#26 Also, i bumped up the java version to 7, because 6 is no longer supported.
1 parent 52f8786 commit 0a4a16f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<groupId>com.github.odiszapc</groupId>
2424
<artifactId>nginxparser</artifactId>
25-
<version>0.9.6</version>
25+
<version>0.9.7</version>
2626
<packaging>jar</packaging>
2727

2828
<name>${project.groupId}:${project.artifactId}</name>
@@ -89,8 +89,8 @@
8989
<artifactId>maven-compiler-plugin</artifactId>
9090
<version>3.5.1</version>
9191
<configuration>
92-
<source>1.6</source>
93-
<target>1.6</target>
92+
<source>1.7</source>
93+
<target>1.7</target>
9494
<encoding>UTF-8</encoding>
9595
</configuration>
9696
</plugin>

src/main/java/com/github/odiszapc/nginxparser/NgxDumper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ private void writeToStream(NgxBlock config, PrintWriter writer, int level) {
7979
writeToStream(ifBlock, writer, level + 1);
8080
writer
8181
.append(getOffset(level))
82-
.append(LBRACE)
82+
.append(RBRACE)
8383
.append(getLineEnding());
84+
break;
8485
case COMMENT:
8586
case PARAM:
8687
writer

0 commit comments

Comments
 (0)