2011-01-20 4 views
4

다음 HTML 코드 (목록 항목)가 있습니다. 내용은 중요하지 않습니다. 문제는 줄 끝 2입니다.이맥스 채우기 단락 줄 바꿈 없음 예상 위치

<li>Yes, you can learn how to play piano without becoming a 
    great notation reader, 
    however, <strong class="warning">you <em class="emphatic">will</em> 
    have to acquire a <em class="emphatic">very</em>basic amount 
    of notation reading skill</strong>. But the extremely 
    difficult task of honing your note reading skills that 
    classical students are required to endure for years and years 
    is <em class="emphatic">totally non-existant</em>as a 
    requirement for playing non-classical piano.</li> 

명령 채우기 단락 (M-q)이 적용되었습니다. 나는 내 인생에서 "리더"다음의 두 번째 줄에 줄 바꿈이 표시되는 이유를 알아낼 수 없다.하지만 "줄"에 더 많은 여유 공간이 있기 때문이다. 내가 눈치 챈 다른 또 다른 이상한 점은 삭제 한 다음 탭 문자를 4 행과 5 행 (각각 "have"와 "of"로 시작)에서 다시 적용하면 두 개의 공백이 자동으로 삽입된다는 것입니다.

<li>Yes, you can learn how to play piano without becoming a 
    great notation reader, 
    however, <strong class="warning">you <em class="emphatic">will</em> 
    have to acquire a <em class="emphatic">very</em>basic amount 
    of notation reading skill</strong>. But the extremely 
    difficult task of honing your note reading skills that 
    classical students are required to endure for years and years 
    is <em class="emphatic">totally non-existant</em>as a 
    requirement for playing non-classical piano.</li> 

실마리가 있는지 알 수 없습니다. 다른 라인에서는 이런 일이 일어나지 않습니다.

이것은 버그일까요? 아니면 숙련 된 이맥스 사람이 여기에서 무슨 일이 일어날 지 알고 있습니까?

고맙습니다.

답변

1

나에게 버그처럼 보입니다.

나는 이런 식으로 예를 손질 할 수 있었다 : 예상대로

<li>blabla 
    blabla <b>some_long_text_here</b> <b>more_long_text_here</b> 

나는, 그것에서 fill-paragraph 작품을 하나의 텍스트 문자를 제거합니다. 또는 두 개의 연속적인 요소 인 <b> 사이에 chacter를 추가하면됩니다.

3

이것은 의도적 인 것입니다. XML 또는 SGML 태그로 시작하는 줄은 단락 구분선입니다. 이맥스 (Emacs)가 줄의 시작 부분에서 태그가 끝나는 방식으로 단락을 깨뜨린 경우, fill-paragraph의 후속 응용 프로그램은 그 줄에서 멈출 것입니다. 이

<p>a paragraph</p> 
<!-- no blank line --> 
<p>another paragraph</p> 

두 개 이상의 공백이 후이없는 한 이맥스 기간이 지나면 라인을 중단하지 않을 것이다, 같은 이유로

<p>a paragraph</p> <!-- no blank line --> <p>another paragraph</p> 

로 설정하지 않는, 예를 들어, 다음을 보장하는 것입니다 기간은 문장을 끝내는 기간과 약어를 끝내는 기간을 구분하기 위해 이중 공간을 사용하고 약어를 끝내는 기간 이후에 줄을 끊으면 모호한 상황이 발생합니다.

+0

'문장 끝 이중 공간'참조 –