extras/html/htmlParser: Fixed consecutive <br> resulting in a single line change
authorJerome St-Louis <jerome@ecere.com>
Sat, 12 Dec 2015 01:30:30 +0000 (20:30 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 12 Dec 2015 17:17:47 +0000 (12:17 -0500)
- Problem introduced by 7948fd17eea7422d19f60845bc0633fe084bbd67

extras/html/htmlParser.ec

index a747877..81c0072 100644 (file)
@@ -437,7 +437,9 @@ class HTMLFile
                      }
                      else if(!strcmpi(keyWord, "br") || (!lastBR && (!strcmpi(keyWord, "div") || !strcmpi(keyWord, "li"))))
                      {
-                        if(!lastBR || (lastCh && lastCh != ' '))
+                        // Commented this if out as it prevents multiple BR from creating spacing
+                        // This was losing spacing in Documentor. This if was originally added by 7948fd17eea7422d19f60845bc0633fe084bbd67
+                        //if(!lastBR || (lastCh && lastCh != ' '))
                         {
                            subBlock = AddBlock(block, BR);
                            lastCh = ' ';