OSDN Git Service

fix: failed to recognize the region of 2ch style link refference.
authorakira001 <akohta001@gmail.com>
Tue, 17 Sep 2013 10:30:24 +0000 (19:30 +0900)
committerakira001 <akohta001@gmail.com>
Tue, 17 Sep 2013 10:30:24 +0000 (19:30 +0900)
NT2chCtrl45/html/HtmlElement_2chparser.cs

index 9bbce4d..c164b21 100755 (executable)
@@ -318,9 +318,9 @@ namespace NT2chCtrl.html
                             hElem.addAttribute(hAttr);\r
                             hElem.setClosed(true);\r
                             if (state == 3)\r
-                                textStart = i - 2;\r
-                            else if (state == 2)\r
                                 textStart = i - 1;\r
+                            else if (state == 2)\r
+                                textStart = i;\r
                             sElem = new StringElement(hElem, source.Substring(textEnd, textStart - textEnd));\r
                         }\r
                         state = 0;\r