Skip to content

Commit 2bcc825

Browse files
committed
Encapsulate string
1 parent 5b840b0 commit 2bcc825

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

registries/_format/sf-string.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ base_type: string
88
layout: default
99
---
1010

11-
# <a href="..">{{ page.collection }}</a>
12-
13-
## {{ page.slug }} - {{ page.description }}
14-
15-
Base type: `{{ page.base_type }}`.
16-
11+
{% capture summary %}
1712
The `{{page.slug}}` format represents a structured fields string as defined in [RFC8941].
1813

1914
```abnf
@@ -29,17 +24,8 @@ Note that this excludes tabs, newlines, carriage returns, etc.
2924
Strings are delimited with double quotes, using a backslash ("\") to escape double quotes and backslashes.
3025

3126
This format is appropriate for a header value that must conform to the {{page.slug}} structured field definition.
27+
{% endcapture %}
3228

33-
{% if page.issue %}
34-
### GitHub Issue
35-
36-
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
37-
{% endif %}
38-
39-
{% if page.remarks %}
40-
### Remarks
41-
42-
{{ page.remarks }}
43-
{% endif %}
29+
{% include format-entry.md summary=summary %}
4430

4531
[RFC8941]: https://www.rfc-editor.org/rfc/rfc8941#name-strings

0 commit comments

Comments
 (0)