0
我用TYPO3 V7.6.x創建了三個網站。他們都使用fluid_styled_content擴展名。作爲輸出設置,我使用10.variables.content < styles.content.get
和模板{content -> f:format.raw()}
。這些所有輸出的html代碼都有很多空白行。例如:fluid_styled_content渲染生成大量的空行
<!--TYPO3SEARCH_begin-->
<div id="c26">
<h1>Fachstelle Gesundheitsförderung Uri</h1>
</div>
<div id="c14">
<div class="ce-textpic ce-left ce-above">
<div class="ce-bodytext">
<p><span class="lead-text">Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Dolores et ea rebum. Stet clita , no sea takimata.</span></p>
</div>
</div>
</div>
<div class="row link-box"><div class="col-sm-6"><a href="/ueber-uns/"><img src="/fileadmin/_processed_/8/7/csm_teaser-1_f496539e13.jpg" width="720" height="375" class="img-responsive" alt="Gesundheitsförderung" ><div class="link-box-title"><h2>Gesundheitsförderung</h2></div></a></div><div class="col-sm-6"><a href="/ueber-uns/"><img src="/fileadmin/_processed_/8/7/csm_teaser-1_f496539e13.jpg" width="720" height="375" class="img-responsive" alt="Cool & Clean" ><div class="link-box-title"><h2>Cool & Clean</h2></div></a></div><div class="col-sm-6"><a href="/ueber-uns/"><img src="/fileadmin/_processed_/8/7/csm_teaser-1_f496539e13.jpg" width="720" height="375" class="img-responsive" alt="Verein" ><div class="link-box-title"><h2>Verein</h2></div></a></div><div class="col-sm-6 news-latest"><a href="/ueber-uns/news/detail/?tx_ttnews%5Btt_news%5D=3&cHash=6d34dea8e8bab4f3cd47e60b524f7b27"><div class="link-box-description"><p>15. November 2016</p><h3>Projekt Ernährung</h3><p class="teaser">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et...</p></div><div class="link-box-title"><h2>News</h2></div></a></div></div>
<div id="c40">
<h2>Weitere Infos</h2>
<div class="ce-textpic ce-left ce-above">
<div class="ce-bodytext">
<p><a href="/kontakt/" class="link-list">Newsletter</a><a href="/kontakt/" class="link-list">Veranstaltungen</a><a href="/kontakt/" class="link-list">Kontakt</a> </p>
</div>
</div>
</div>
<!--TYPO3SEARCH_end-->
如何刪除不需要的空行?
在此先感謝 丹尼爾
我得到了一個TYPO3論壇成員的解決方案。該解決方案是使用一個視圖助手功能: ' {內容 - > F:format.raw()} F:spaceless>' 我希望這可以幫助其他人;-)。 –
Dan