2012-10-11 16 views
5

Gdy używam Tidy HTML in Coda To czyste, ale nie lubię mieć pusty liniaHTML Tidy nowy pusty wiersz po znacznikach zamykających

<ul> 
    <li>…</li> 
<!-- here --> 
    <li>…</li> 
</ul> 

próbuję edytować config bez powodzenia

// config file for Coda PHP Toolkit Tidy FORMAT script 
// http://www.chipwreck.de/blog/software/coda-php 
// 
// documentation is here: http://tidy.sourceforge.net/#docs 
// rev 5 

anchor-as-name: no 
doctype: auto 
drop-empty-paras: no 
fix-uri: no 
literal-attributes: yes 
merge-divs: no 
merge-spans: no 
numeric-entities: no 
preserve-entities: yes 
quote-ampersand: no 
quote-marks: no 
show-body-only: no 
indent: auto 
indent-spaces: 4 
tab-size: 4 
wrap: 0 
wrap-asp: no 
wrap-jste: no 
wrap-php: no 
wrap-sections: no 
tidy-mark: no 
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter 
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr 

// Change these only if you need to debug a problem with Tidy 
force-output: yes 
quiet: yes 
show-warnings: yes 

widzę to pytanie: How do I get HTML Tidy to not put newline before closing tags?, ale to mi nie pomaga.

Jaka jest opcja aktywacji?

ten config jest bez pustej linii, ale nie tiret:

// config file for Coda PHP Toolkit Tidy FORMAT script 
// http://www.chipwreck.de/blog/software/coda-php 
// 
// documentation is here: http://tidy.sourceforge.net/#docs 
// rev 5 

anchor-as-name: no 
doctype: auto 
drop-empty-paras: no 
fix-uri: no 
literal-attributes: yes 
merge-divs: no 
merge-spans: no 
numeric-entities: no 
preserve-entities: yes 
quote-ampersand: no 
quote-marks: no 
show-body-only: no 
indent: no 
indent-spaces: 2 
tab-size: 2 
wrap: 0 
wrap-asp: no 
wrap-jste: no 
wrap-php: no 
wrap-sections: no 
tidy-mark: no 
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter 
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr 

// Change these if you need to debug a problem with Tidy 
force-output: yes 
quiet: yes 
show-warnings: yes 

Odpowiedz

0

Proponuję dodanie

vertical-space: no 

choć powinno to być ustawienie domyślne.

Czy to rozwiązuje problem?

+0

no ... dodaję inny config ale bez tiret w moim poście ... –

1

Mam ten sam problem. Here mała wtyczka (15kb) napisana przeze mnie w ciągu minuty, która rozwiązuje ten problem.

+0

To nie działa dla mnie ... co coda wersja używasz? – Slevin

+0

Używam Cody 2.0.6 –

4

Po znacznie eksperymentowania, znalazłem odpowiednie ustawienie, aby nie dodać puste wiersze:

indent: yes // Indent for human readability. "yes" because "auto" adds blank lines.