rjeschke / txtmark

Yet another markdown processor for the JVM
Apache License 2.0
449 stars 100 forks source link

This looks wrong #49

Closed davidlbowen closed 8 years ago

davidlbowen commented 8 years ago
private int readXMLComment(final Line firstLine, final int start)
    {
        Line line = firstLine;
        if (start + 3 < line.value.length())
        {
            if (line.value.charAt(2) == '-' && line.value.charAt(3) == '-')
            {
...

I think that should be

            if (line.value.charAt(start + 2) == '-' && line.value.charAt(start + 3) == '-')