OSDN Git Service

CollapseWhitespace() was eating a closing tag's < when tags included nothing but...
authorJochen Tucht <jtuc@users.sourceforge.net>
Thu, 31 Jan 2008 21:34:05 +0000 (21:34 +0000)
committerJochen Tucht <jtuc@users.sourceforge.net>
Thu, 31 Jan 2008 21:34:05 +0000 (21:34 +0000)
Src/UniMarkdownFile.cpp

index 28d0889..2a921b7 100644 (file)
@@ -51,7 +51,7 @@ static void CollapseWhitespace(CString &line)
                        line.SetAt(i, ' ');
                        break;
                case '>':
-                       if (nEatSpace >= 0)
+                       if (nEatSpace >= 0 && line.GetAt(i + 1 + nEatSpace) != '<')
                                ++nEatSpace;
                default:
                        if (nEatSpace > 0)