Skip to content

Commit

Permalink
Minor code style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Coles <alex@alexbcoles.com>
  • Loading branch information
myabc committed Feb 19, 2014
1 parent 8427237 commit d133157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/markdownj/MarkdownProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public String replacement(Matcher m) {
public String replacement(Matcher m) {
String list = m.group(1);
String listStart = m.group(3);
String listType = "";
String listType;

if (listStart.matches("[*+-]")) {
listType = "ul";
Expand All @@ -511,7 +511,7 @@ public String replacement(Matcher m) {
String result = processListItems(list);

String html;
if (listStart.matches("[*+-]")) {
if ("ul".equals(listType)) {
html = "<ul>\n" + result + "</ul>\n";
} else {
html = "<ol>\n" + result + "</ol>\n";
Expand Down

0 comments on commit d133157

Please sign in to comment.