Skip to content

Commit 20ea624

Browse files
authored
Merge pull request #102 from common-workflow-language/doc-spacing
Double line break in doc strings allows for a new paragraph in table
2 parents e12fc99 + b11c4f1 commit 20ea624

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/resources/templates/workflow.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ <h2>Inputs</h2>
189189
<td th:text="${input.key}">ID</td>
190190
<td th:text="${input.value.type}">Type</td>
191191
<td th:text="${input.value.label}">Label</td>
192-
<td th:text="${input.value.doc}">Description</td>
192+
<td>
193+
<p th:if="${input.value.doc != null}" th:utext="${#strings.replace( #strings.escapeXml(input.value.doc),T(java.lang.System).getProperty('line.separator')+T(java.lang.System).getProperty('line.separator'),'&lt;br /&gt;&lt;br /&gt;')}">Description</p>
194+
</td>
193195
</tr>
194196
</tbody>
195197
</table>
@@ -220,7 +222,9 @@ <h2>Steps</h2>
220222
</div>
221223
</td>
222224
<td th:text="${step.value.label}">Label</td>
223-
<td th:text="${step.value.doc}">Description</td>
225+
<td>
226+
<p th:if="${step.value.doc != null}" th:utext="${#strings.replace( #strings.escapeXml(step.value.doc),T(java.lang.System).getProperty('line.separator')+T(java.lang.System).getProperty('line.separator'),'&lt;br /&gt;&lt;br /&gt;')}">Description</p>
227+
</td>
224228
</tr>
225229
</tbody>
226230
</table>
@@ -242,7 +246,9 @@ <h2>Outputs</h2>
242246
<td th:text="${output.key}">ID</td>
243247
<td th:text="${output.value.type}">Type</td>
244248
<td th:text="${output.value.label}">Label</td>
245-
<td th:text="${output.value.doc}">Description</td>
249+
<td>
250+
<p th:if="${output.value.doc != null}" th:utext="${#strings.replace(#strings.escapeXml(output.value.doc),T(java.lang.System).getProperty('line.separator')+T(java.lang.System).getProperty('line.separator'),'&lt;br /&gt;&lt;br /&gt;')}">Description</p>
251+
</td>
246252
</tr>
247253
</tbody>
248254
</table>

0 commit comments

Comments
 (0)