Skip to content

Commit 8b6d66d

Browse files
committed
Fixing bug by removing spaceless...
1 parent 8e807b8 commit 8b6d66d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55

6-
6+
77
</head>
88

99
<body>
@@ -12,7 +12,7 @@ <h1 id="datetimetype-field"><a class="headerlink" href="#datetimetype-field" tit
1212
<p>This field type allows the user to modify data that represents a specific
1313
date and time (e.g. <code translate="no" class="notranslate">1984-06-05 12:15:30</code>).</p>
1414
<table>
15-
15+
1616
<tbody>
1717
<tr>
1818
<td>Underlying Data Type</td>
@@ -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 ">
@@ -126,7 +126,7 @@ <h3 id="placeholder"><a class="headerlink" href="#placeholder" title="Permalink
126126
</div>
127127
<div class="section">
128128
<h3 id="format"><a class="headerlink" href="#format" title="Permalink to this headline">format</a></h3>
129-
<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>
129+
<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>
130130
<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
131131
the format of the input, i.e. how Symfony will interpret the given input
132132
as a datetime string. See <a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" class="reference external">Date/Time Format Syntax</a>.</p>
@@ -146,12 +146,12 @@ <h3 id="format"><a class="headerlink" href="#format" title="Permalink to this he
146146
</div>
147147
<div class="section">
148148
<h3 id="time-widget"><a class="headerlink" href="#time-widget" title="Permalink to this headline">time_widget</a></h3>
149-
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">choice</code></p>
149+
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">choice</code></p>
150150
<p>Defines the <code translate="no" class="notranslate">widget</code> option for the <code translate="no" class="notranslate">TimeType</code>.</p>
151151
</div>
152152
<div class="section">
153153
<h3 id="widget"><a class="headerlink" href="#widget" title="Permalink to this headline">widget</a></h3>
154-
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code><strong>default</strong>: <code translate="no" class="notranslate">null</code></p>
154+
<p><strong>type</strong>: <code translate="no" class="notranslate">string</code> <strong>default</strong>: <code translate="no" class="notranslate">null</code></p>
155155
<p>Defines the <code translate="no" class="notranslate">widget</code> option for both the <code translate="no" class="notranslate">DateType</code>.
156156
and <code translate="no" class="notranslate">TimeType</code>. This can be overridden
157157
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>
@@ -294,7 +294,7 @@ <h2 id="field-variables"><a class="headerlink" href="#field-variables" title="Pe
294294
<th>Usage</th>
295295
</tr>
296296
</thead>
297-
297+
298298
<tbody>
299299
<tr>
300300
<td>widget</td>

0 commit comments

Comments
 (0)