Skip to content

Commit

Permalink
Fix nested list item space before to 2 characters GH-14
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticmind committed Nov 21, 2017
1 parent d823a10 commit 7a5b2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReverseMarkdown/Converters/Li.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private string PrefixFor(HtmlNode node)
private string IndentationFor(HtmlNode node)
{
int length = node.Ancestors("ol").Count() + node.Ancestors("ul").Count();
return new string(' ', Math.Max(length-1,0));
return new string(' ', Math.Max(length-1,0)*2);
}
}
}

0 comments on commit 7a5b2aa

Please sign in to comment.