Skip to content

Commit 42e515e

Browse files
committed
Fixing bug by removing spaceless...
1 parent 46e1c07 commit 42e515e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% set text = paragraphNode.value.render()|trim %}
2+
3+
{% if text %}
4+
<p{% if paragraphNode.classes %} class="{{ paragraphNode.classesString }}"{% endif %}>{{ text|raw }}</p>
5+
{% endif %}

tests/fixtures/expected/main/datetime.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h1 id="datetimetype-field"><a class="headerlink" href="#datetimetype-field" tit
5757
<h2 id="field-options"><a class="headerlink" href="#field-options" title="Permalink to this headline">Field Options</a></h2>
5858
<div class="section">
5959
<h3 id="the-date-format-option"><a class="headerlink" href="#the-date-format-option" title="Permalink to this headline">The date_format Option</a></h3>
60-
<p><strong>type</strong>: <code translate="no" class="notranslate">integer</code> or <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">IntlDateFormatter::MEDIUM</code></p>
60+
<p><strong>type</strong>: <code translate="no" class="notranslate">integer</code> or <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">IntlDateFormatter::MEDIUM</code></p>
6161
<p>Defines the <code translate="no" class="notranslate">format</code> option that will be passed down to the date field.
6262
for more details.</p>
6363
<div class="admonition admonition-tip ">
@@ -134,7 +134,7 @@ <h3 id="placeholder"><a class="headerlink" href="#placeholder" title="Permalink
134134
</div>
135135
<div class="section">
136136
<h3 id="format"><a class="headerlink" href="#format" title="Permalink to this headline">format</a></h3>
137-
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">Symfony<wbr>\Component<wbr>\Form<wbr>\Extension<wbr>\Core<wbr>\Type<wbr>\DateTimeType::HTML5_FORMAT</code></p>
137+
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">Symfony<wbr>\Component<wbr>\Form<wbr>\Extension<wbr>\Core<wbr>\Type<wbr>\DateTimeType::HTML5_FORMAT</code></p>
138138
<p>If the <code translate="no" class="notranslate">widget</code> option is set to <code translate="no" class="notranslate">single_text</code>, this option specifies
139139
the format of the input, i.e. how Symfony will interpret the given input
140140
as a datetime string. See <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" class="reference external" rel="external noopener noreferrer" target="_blank">Date/Time Format Syntax</a>.</p>
@@ -154,12 +154,12 @@ <h3 id="format"><a class="headerlink" href="#format" title="Permalink to this he
154154
</div>
155155
<div class="section">
156156
<h3 id="time-widget"><a class="headerlink" href="#time-widget" title="Permalink to this headline">time_widget</a></h3>
157-
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">choice</code></p>
157+
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">choice</code></p>
158158
<p>Defines the <code translate="no" class="notranslate">widget</code> option for the <code translate="no" class="notranslate">TimeType</code>.</p>
159159
</div>
160160
<div class="section">
161161
<h3 id="widget"><a class="headerlink" href="#widget" title="Permalink to this headline">widget</a></h3>
162-
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">null</code></p>
162+
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">null</code></p>
163163
<p>Defines the <code translate="no" class="notranslate">widget</code> option for both the <code translate="no" class="notranslate">DateType</code>.
164164
and <code translate="no" class="notranslate">TimeType</code>. This can be overridden
165165
with the <a href="datetime.html#date-widget" class="reference internal">date_widget</a> and <a href="datetime.html#time-widget" class="reference internal">time_widget</a> options.</p>

0 commit comments

Comments
 (0)