From 34b062d5a76fb8f52de4187996e233372eb43a6e Mon Sep 17 00:00:00 2001
From: Nils Berge <60594671+nils-work@users.noreply.github.com>
Date: Thu, 21 Sep 2023 18:04:49 +1000
Subject: [PATCH] Property names wrapping to two lines
Addresses: https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/309
---
slate/source/includes/_admin.md.erb | 4 +++-
.../source/includes/releasenotes/releasenotes.1.27.0.html.md | 3 ++-
swagger-gen/widdershins-cdr/common.js | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/slate/source/includes/_admin.md.erb b/slate/source/includes/_admin.md.erb
index b2a3b7d7..8fe37e84 100644
--- a/slate/source/includes/_admin.md.erb
+++ b/slate/source/includes/_admin.md.erb
@@ -9,6 +9,8 @@ This provides an overview of CDS Administration Endpoints. Please note this API
Admin OpenAPI Specification (YAML) |
-
+```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" %>
diff --git a/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md b/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md
index beea47a6..e15016ca 100644
--- a/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md
+++ b/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md
@@ -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):
@@ -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
diff --git a/swagger-gen/widdershins-cdr/common.js b/swagger-gen/widdershins-cdr/common.js
index 44256e31..c5b35747 100644
--- a/swagger-gen/widdershins-cdr/common.js
+++ b/swagger-gen/widdershins-cdr/common.js
@@ -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);