소스 검색

+ allow also <BR/> as line break tag

git-svn-id: trunk@5887 -
pierre 18 년 전
부모
커밋
901cc71411
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      ide/whtml.pas

+ 6 - 0
ide/whtml.pas

@@ -553,6 +553,12 @@ begin
   UTagName:=UpcaseStr(TagName);
   NotEndTag:=copy(TagName,1,1)<>'/';
   if NotEndTag then ETagName:=UTagName else ETagName:=copy(UTagName,2,255);
+  { <BR/> is also a Break tag... }
+  if Copy(ETagName,Length(ETagName),1)='/' then
+    begin
+      ETagName:=copy(ETagName,1,Length(ETagName)-1);
+      NotEndTag:=false;
+    end;
 
   if (UTagName='!DOCTYPE') then DocTYPE else
   { Section tags }