Skip to content

Commit

Permalink
Reduce whitespaces.
Browse files Browse the repository at this point in the history
This prevents additional rendering and storage of whitespaces in the form.
  • Loading branch information
sallner committed Feb 6, 2018
1 parent 8552fda commit fb3a82e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/OFS/dtml/properties.dtml
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,12 @@ property values, edit the values and click "Save Changes".
<dtml-var "getProperty(id)" html_quote>
</textarea>
<dtml-elif "type in ['lines','ulines']">
<dtml-comment>We need to avoid any whitespaces in between these tags.
This unfortunately results in a very long line. </dtml-comment>
<textarea name="&dtml-id;:&dtml-charset_tag;&dtml-type;"
class="form-control"
rows="6"
cols="35">
<dtml-in "getProperty(id)">
&dtml-sequence-item;
<dtml-if sequence-end>
<dtml-else>
<dtml-var "'\n'">
</dtml-if>
</dtml-in>
</textarea>
cols="35"><dtml-in "getProperty(id)">&dtml-sequence-item;<dtml-if sequence-end><dtml-else><dtml-var "'\n'"></dtml-if></dtml-in></textarea>

<dtml-elif "type=='selection'">

Expand Down

0 comments on commit fb3a82e

Please sign in to comment.