Skip to content

Commit

Permalink
Property names wrapping to two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-work committed Sep 21, 2023
1 parent aaa2825 commit 34b062d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion slate/source/includes/_admin.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This provides an overview of CDS Administration Endpoints. Please note this API
<tr><td><a href='./includes/swagger/cds_admin.yaml'>Admin OpenAPI Specification (YAML)</a></td></tr>
</table>


```diff
Changed to a non-breaking space between the indent chevron and property name in all schema Properties tables to prevent line wrapping
```

<%= partial "includes/cds_admin.md" %>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Release notes for version v1.27.0 of the [CDR Standards](../../index.html).

This release addresses the following minor defects raised on [Standards Staging](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues):

- [Staging Issue xxx - Description](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/xxx)
- [Staging Issue 309 - Property names wrapping to two lines](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/309)

This release addresses the following change requests raised on [Standards Maintenance](https://github.com/ConsumerDataStandardsAustralia/standards-maintenance/issues):

Expand Down Expand Up @@ -49,6 +49,7 @@ This release addresses the following Decision Proposals published on [Standards]

|Change|Description|Link|
|------|-----------|----|
| Property names wrapping to two lines | **[Standards Staging #309](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/309):** Changed to a non-breaking space between the indent chevron and property name in all schema Properties tables to prevent line wrapping | All schema Properties tables |

## Information Security Profile

Expand Down
2 changes: 1 addition & 1 deletion swagger-gen/widdershins-cdr/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function schemaToArray(schema,offset,options,data) {
}
if ((skipDepth >= 0) && (entry.depth >= skipDepth)) entry.name = ''; // reset
if (entry.depth < skipDepth) skipDepth = -1;
entry.displayName = (data.translations.indent.repeat(entry.depth)+' '+entry.name).trim();
entry.displayName = (data.translations.indent.repeat(entry.depth) + String.fromCharCode(160) + entry.name).trim();

if ((!state.top || entry.type !== 'object') && (entry.name)) {
block.rows.push(entry);
Expand Down

0 comments on commit 34b062d

Please sign in to comment.