br, hr 등의 self-closing 태그에서 태그 이름과 /> 앞에 공백이 두 칸 삽입되던 문제 수정 -> 공백 한 칸만 삽입

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7355 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-03-25 01:28:03 +00:00
parent 9e91ec5639
commit cd195299d2

View file

@ -5532,7 +5532,7 @@ xe.XE_XHTMLFormatter = $.Class({
if ($.inArray(m2,lonely_tags) >= 0) {
var len = m3.length;
if (m2 == 'br') m3 = '';
if (!m3 || m3.substring(len-1,len) != '/') m3 += ' /';
if (!m3 || m3.substring(len-1,len) != '/') m3 += '/';
return '<'+m2+' '+m3+'>';
}