Skip to content

Commit bab0bd4

Browse files
committed
remove unused whitespace
1 parent 3c857a5 commit bab0bd4

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,12 @@ Numbers can be displayed
908908
"feature": "Performance",
909909
"description": "Designed for performance, with a focus on efficient data processing and minimal overhead.",
910910
"benefits": "Quickly processes large datasets, handles high volumes of requests, and minimizes server load."
911+
},
912+
{
913+
"_sqlpage_footer": true,
914+
"feature": "Summary",
915+
"description": "Summarizes the features of the product.",
916+
"benefits": "Provides a quick overview of the product''s features and benefits."
911917
}
912918
]')
913919
),

sqlpage/templates/table.handlebars

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@
5656
</thead>
5757
<tbody class="table-tbody list">{{#delay}}</tbody>{{/delay}}
5858
{{~/if~}}
59-
60-
{{! If this data row should go into the footer, close the <tbody>, open the <tfoot> }}
61-
{{#if _sqlpage_footer}} </tbody><tfoot> {{/if}}
59+
{{!~ If this data row should go into the footer, close the <tbody>, open the <tfoot> ~}}
60+
{{~#if _sqlpage_footer~}} </tbody><tfoot> {{/if~}}
6261
<tr class="{{_sqlpage_css_class}} {{#if _sqlpage_color}}bg-{{_sqlpage_color}}-lt{{/if}}" {{#if _sqlpage_id}}id="{{_sqlpage_id}}"{{/if}}>
6362
{{~#each this~}}
6463
{{~#if (not (starts_with @key '_sqlpage_'))~}}
@@ -79,10 +78,11 @@
7978
{{/if~}}
8079
{{~/each~}}
8180
</tr>
82-
83-
{{! After this <tr> has been rendered, if this was a footer, we need to reopen a new <tbody> }}
84-
{{! No need for another delayed closure since the previous one still applies }}
85-
{{#if _sqlpage_footer}} </tfoot><tbody class="table-tbody list"> {{/if}}
81+
{{!~
82+
After this <tr> has been rendered, if this was a footer, we need to reopen a new <tbody>
83+
No need for another delayed closure since the previous one still applies
84+
~}}
85+
{{~#if _sqlpage_footer}} </tfoot><tbody class="table-tbody list"> {{/if~}}
8686
{{/each_row}}
8787
{{flush_delayed}}
8888

0 commit comments

Comments
 (0)