Skip to content

Commit

Permalink
Merge pull request #78 from simllll/master
Browse files Browse the repository at this point in the history
start lists with a new line
  • Loading branch information
Malte Legenhausen committed Feb 8, 2016
2 parents 424d4d0 + af6cb2e commit a45dca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ function formatListItem(prefix, elem, fn, options) {
}

function formatUnorderedList(elem, fn, options) {
var result = '';
var result = '\n';
_.each(elem.children, function(elem) {
result += formatListItem(' * ', elem, fn, options);
});
return result + '\n';
}

function formatOrderedList(elem, fn, options) {
var result = '';
var result = '\n';
// Make sure there are list items present
if (elem.children && elem.children.length) {
// Calculate the maximum length to i.
Expand Down

0 comments on commit a45dca0

Please sign in to comment.