From 74deb8281e089b63e9ac37118ed49dc9ae862679 Mon Sep 17 00:00:00 2001 From: Uenal Akkaya Date: Wed, 1 Dec 2021 18:14:27 +0100 Subject: [PATCH 1/8] Knowledge Transfer Document: Object type SKTD --- file-formats/sktd/README.md | 5 + .../examples/z_aff_example_sktd.sktd.en.md | 208 ++++++++++++++++++ .../examples/z_aff_example_sktd.sktd.json | 11 + file-formats/sktd/sktd-v1.json | 89 ++++++++ .../sktd/type/zif_aff_sktd_v1.intf.abap | 36 +++ .../sktd/type/zif_aff_sktd_v1.intf.json | 7 + 6 files changed, 356 insertions(+) create mode 100644 file-formats/sktd/README.md create mode 100644 file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md create mode 100644 file-formats/sktd/examples/z_aff_example_sktd.sktd.json create mode 100644 file-formats/sktd/sktd-v1.json create mode 100644 file-formats/sktd/type/zif_aff_sktd_v1.intf.abap create mode 100644 file-formats/sktd/type/zif_aff_sktd_v1.intf.json diff --git a/file-formats/sktd/README.md b/file-formats/sktd/README.md new file mode 100644 index 000000000..3220c3cfd --- /dev/null +++ b/file-formats/sktd/README.md @@ -0,0 +1,5 @@ +# SKTD File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.sktd.json` | 1 | [`zif_aff_sktd_v1.intf.abap`](./type/zif_aff_sktd_v1.intf.abap) | [`sktd-v1.json`](./sktd-v1.json) | [`z_aff_example_sktd.sktd.json`](./examples/z_aff_example_sktd.sktd.en.json) diff --git a/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md b/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md new file mode 100644 index 000000000..b09101b57 --- /dev/null +++ b/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md @@ -0,0 +1,208 @@ +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.headings ) + +## Headings + +Section headings can be specified in six different levels using the hash character. + +**Markdown**: +``` +# This is a h1 heading +## This is a h2 heading +### This is a h3 heading +#### This is a h4 heading +##### This is a h5 heading +###### This is a h6 heading +``` + + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.linesAndParagraphs ) + +## Lines and paragraphs + +This is a paragraph. +This is a new line in the same paragraph. + +This is a separate paragraph. + +**Markdown**: +``` +This is a paragraph. +This is a new line in the same paragraph. + +This is a separate paragraph. +``` + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.links ) + +## Links + +### Web links + +* See [Link SAP](https://www.sap.com) +* A direct link goes is specified like this: + +**Markdown**: +``` +* See [Link SAP](http://www.sap.com) +* A direct link goes is specified like this: +``` + +### Object reference + +* See [Link to BDEF](BDEF:Z_AFF_EXAMPLE_SKTD) +* A direct link goes is specified like this: + +**Markdown**: +``` +* See [Link to BDEF](BDEF:Z_AFF_EXAMPLE_SKTD) +* A direct link goes is specified like this: +``` + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.lists ) + +## Lists + +### Unordered list + +* item 1 + * item 1.1 + * item 1.2 + * item 1.2.1 +* item 2 +* item 3 + +**Markdown**: +``` +* item 1 + * item 1.1 + * item 1.2 + * item 1.2.1 +* item 2 +* item 3 +``` + +### Ordered List + +1. item a +2. item b +3. item c + +**Markdown**: +``` +1. item a +2. item b +3. item c +``` + + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.quote ) + +### Quote + +> This is a simple blockquote text. +> This line is part of the same quote. + +Quote break. + +> This is the continued blockquote text. + +**Markdown**: +``` +> A blockquote starts with the greater-than character (>). +``` + + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.sourceCode ) + +### Source Code + +`Inline code` has *back-ticks* (`\``) around it. + +A code block is enclosed by *three back-ticks* (`\`\`\``) before and after the code snippet. + +``` +if (a == b) { + alert(s); +} +``` + +**Markdown**: +``` +\`\`\` +if (a == b) { + alert(s); +} +\`\`\` +``` + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.table ) + +## Tables in Simple Markdown + +There must be at least 3 dashes separating each header cell. + +| Header1 | Header2 | Header3 | +|---------|---------|---------| +|Cell11 |*Cell12* |Cell13 | +|Cell21 |Cell22 |Cell23 | + +**Markdown**: +``` +| Header1 | Header2 | Header3 | +|---------|---------|---------| +|Cell11 |*Cell12* |Cell13 | +|Cell21 |Cell22 |Cell23 | +``` + +The outer pipes (`|`) are optional. + +Markdown | Less | Pretty +--- | --- | --- +*Still* | `renders` | **nicely** +1 | 2 | 3 + +**Markdown**: +``` +Markdown | Less | Pretty +--- | --- | --- +*Still* | `renders` | **nicely** +1 | 2 | 3 +``` + +Columns can be aligned using colons (`:`) with the dashes. + +| Tables | Are | Cool | +|----------|:-------------:|------:| +| col 1 is | left-aligned | $1600 | +| col 2 is | centered | $12 | +| col 3 is | right-aligned | $1 | + +**Markdown**: +``` +| Tables | Are | Cool | +|----------|:-------------:|------:| +| col 1 is | left-aligned | $1600 | +| col 2 is | centered | $12 | +| col 3 is | right-aligned | $1 | +``` + + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.textFormatting ) + +## Text formatting + +Simple Markdown supports *Italics* (enclosed by `\*`), **Bold** (enclosed by `\*\*`) and ~~Strikethrough~~ (enclosed by `\~\~`). + +**Markdown**: +``` +Text can be formatted in *Italics*, **Bold** or ~~Strikethrough~~. +``` + + +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAE;name=z_aff_example_sktd ) + +Here are some documentation texts for the different actions named after the different possibilities of KTD Markdown. + +[//]: # (id:[z_aff_example_sktd] ) + +This is an example KTD documentation of a *Behavior Definition* (**BDEF**) and will be used to create an example *ABAP File Format* (**AFF**) diff --git a/file-formats/sktd/examples/z_aff_example_sktd.sktd.json b/file-formats/sktd/examples/z_aff_example_sktd.sktd.json new file mode 100644 index 000000000..fd4a1e441 --- /dev/null +++ b/file-formats/sktd/examples/z_aff_example_sktd.sktd.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://github.com/SAP/abap-file-formats/file-formats/sktd/sktd.json", + "header": { + "description": "Documentation for Z_AFF_EXAMPLE_SKTD", + "originalLanguage": "EN" + }, + "documentedObject": { + "type": "BDEF", + "name": "Z_AFF_EXAMPLE_SKTD" + } +} diff --git a/file-formats/sktd/sktd-v1.json b/file-formats/sktd/sktd-v1.json new file mode 100644 index 000000000..4cf26c0da --- /dev/null +++ b/file-formats/sktd/sktd-v1.json @@ -0,0 +1,89 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/sktd/sktd-v1.json", + "title": "Knowledge Transfer Document Properties", + "description": "KTD properties", + "type": "object", + "properties": { + "$schema": { + "title": "Schema", + "description": "Format version", + "type": "string" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "maxLength": 2 + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "documentedObject": { + "title": "Documented Object", + "description": "Type and name of the documented object", + "type": "object", + "properties": { + "type": { + "title": "Object Type", + "description": "Type of the documented object", + "type": "string", + "maxLength": 4 + }, + "name": { + "title": "Object Name", + "description": "Name of the documented object", + "type": "string", + "maxLength": 40 + } + }, + "additionalProperties": false, + "required": [ + "type", + "name" + ] + } + }, + "additionalProperties": false, + "required": [ + "$schema", + "header" + ] +} diff --git a/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap new file mode 100644 index 000000000..c024d202e --- /dev/null +++ b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap @@ -0,0 +1,36 @@ +INTERFACE zif_aff_sktd_v1 + PUBLIC . + + TYPES: + "!

Documented Object

+ "! Type and name of the documented object + BEGIN OF ty_sktd_documented_object, + "!

Object Type

+ "! Type of the documented object + "! $required + type TYPE trobjtype, " TYPE c LENGTH 4, + "!

Object Name

+ "! Name of the documented object + "! $required + name TYPE sobj_name, " zif_aff_types_v1=>ty_object_name_30, + END OF ty_sktd_documented_object. + + + TYPES: + "!

Knowledge Transfer Document Properties

+ "! KTD properties + BEGIN OF ty_main, + "!

Schema

+ "! Format version + "! $required + schema TYPE string, + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60, + "!

Documented Object

+ "! Type and name of the documented object + documented_object TYPE ty_sktd_documented_object, + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/sktd/type/zif_aff_sktd_v1.intf.json b/file-formats/sktd/type/zif_aff_sktd_v1.intf.json new file mode 100644 index 000000000..62211044c --- /dev/null +++ b/file-formats/sktd/type/zif_aff_sktd_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "ABAP type specification for Knowledge Transfer Documents", + "originalLanguage": "EN" + } +} From 48cd58624bed7fedd061ace9153b676eae24da26 Mon Sep 17 00:00:00 2001 From: Uenal Akkaya Date: Sun, 5 Dec 2021 19:34:16 +0100 Subject: [PATCH 2/8] Updated example sktd with text for escaped text/comments --- .../examples/z_aff_example_sktd.sktd.en.md | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md b/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md index b09101b57..6d07dfc17 100644 --- a/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md +++ b/file-formats/sktd/examples/z_aff_example_sktd.sktd.en.md @@ -15,6 +15,10 @@ Section headings can be specified in six different levels using the hash charact ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.headings ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.linesAndParagraphs ) ## Lines and paragraphs @@ -32,6 +36,10 @@ This is a new line in the same paragraph. This is a separate paragraph. ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.linesAndParagraphs ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.links ) ## Links @@ -58,6 +66,10 @@ This is a separate paragraph. * A direct link goes is specified like this: ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.links ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.lists ) ## Lists @@ -95,6 +107,10 @@ This is a separate paragraph. ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.lists ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.quote ) ### Quote @@ -112,6 +128,10 @@ Quote break. ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.quote ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.sourceCode ) ### Source Code @@ -135,6 +155,10 @@ if (a == b) { \`\`\` ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.sourceCode ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.table ) ## Tables in Simple Markdown @@ -187,6 +211,10 @@ Columns can be aligned using colons (`:`) with the dashes. ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.table ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.textFormatting ) ## Text formatting @@ -199,10 +227,26 @@ Text can be formatted in *Italics*, **Bold** or ~~Strikethrough~~. ``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.textFormatting ) + + + [//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAE;name=z_aff_example_sktd ) Here are some documentation texts for the different actions named after the different possibilities of KTD Markdown. +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAE;name=z_aff_example_sktd ) + + + [//]: # (id:[z_aff_example_sktd] ) -This is an example KTD documentation of a *Behavior Definition* (**BDEF**) and will be used to create an example *ABAP File Format* (**AFF**) +This is an example KTD documentation of a *Behavior Definition* (**BDEF**) and will be used to create an example *ABAP File Format* (**AFF**). + +The serialization of a KTD object will be done by serialization of each documentation element, for each element the ID followed by the markdown content. The ID will be serialized as comment, e.g. this element ID: + +``` +\[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.headings ) +``` + +Lines in the content starting with `[//]:` will be escaped as `\[//]:`. From c05108ac2858f20a09e9dfb50be787ba0ef0a2d6 Mon Sep 17 00:00:00 2001 From: Uenal Akkaya Date: Sun, 5 Dec 2021 19:39:44 +0100 Subject: [PATCH 3/8] Update README.md --- file-formats/sktd/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/file-formats/sktd/README.md b/file-formats/sktd/README.md index 3220c3cfd..b3164ab1d 100644 --- a/file-formats/sktd/README.md +++ b/file-formats/sktd/README.md @@ -3,3 +3,13 @@ File | Cardinality | Definition | Schema | Example :--- | :--- | :--- | :--- | :--- `.sktd.json` | 1 | [`zif_aff_sktd_v1.intf.abap`](./type/zif_aff_sktd_v1.intf.abap) | [`sktd-v1.json`](./sktd-v1.json) | [`z_aff_example_sktd.sktd.json`](./examples/z_aff_example_sktd.sktd.en.json) + + +The serialization of a KTD object will be done by serialization of each documentation element, for each element the ID is followed by the markdown content. +The ID will be serialized as comment, e.g. the element ID of the headings action documentation element from the example: + +``` +[//]: # (id:/sap/bc/adt/bo/behaviordefinitions/z_aff_example_sktd/source/main#type=BDEF/BAC;name=z_aff_example_sktd.headings ) +``` + +All lines of the documentation content which starts with `[//]:` will be escaped as `\[//]:`. From fa15b68f2d50f494b78bddd75bdfc1d3fe4210d5 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Wed, 8 Dec 2021 10:34:16 +0100 Subject: [PATCH 4/8] Update file-formats/sktd/type/zif_aff_sktd_v1.intf.abap Fix abaplint issue Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> --- file-formats/sktd/type/zif_aff_sktd_v1.intf.abap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap index c024d202e..453969687 100644 --- a/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap +++ b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap @@ -1,5 +1,5 @@ INTERFACE zif_aff_sktd_v1 - PUBLIC . + PUBLIC. TYPES: "!

Documented Object

From 557c49b3a0c81c6ff6eed9f942eec0c5e6f0c2d8 Mon Sep 17 00:00:00 2001 From: Uenal Akkaya Date: Wed, 8 Dec 2021 16:34:42 +0100 Subject: [PATCH 5/8] Incorporated changes for SKTD --- .../sktd/examples/z_aff_example_sktd.sktd.json | 2 +- file-formats/sktd/sktd-v1.json | 11 ++++++----- file-formats/sktd/type/zif_aff_sktd_v1.intf.abap | 8 +++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/file-formats/sktd/examples/z_aff_example_sktd.sktd.json b/file-formats/sktd/examples/z_aff_example_sktd.sktd.json index fd4a1e441..8824f87d6 100644 --- a/file-formats/sktd/examples/z_aff_example_sktd.sktd.json +++ b/file-formats/sktd/examples/z_aff_example_sktd.sktd.json @@ -1,5 +1,5 @@ { - "$schema": "http://github.com/SAP/abap-file-formats/file-formats/sktd/sktd.json", + "formatVersion": "1", "header": { "description": "Documentation for Z_AFF_EXAMPLE_SKTD", "originalLanguage": "EN" diff --git a/file-formats/sktd/sktd-v1.json b/file-formats/sktd/sktd-v1.json index 4cf26c0da..6598d5600 100644 --- a/file-formats/sktd/sktd-v1.json +++ b/file-formats/sktd/sktd-v1.json @@ -6,10 +6,11 @@ "description": "KTD properties", "type": "object", "properties": { - "$schema": { - "title": "Schema", - "description": "Format version", - "type": "string" + "formatVersion": { + "title": "ABAP File Format Version", + "description": "The ABAP file format version", + "type": "string", + "const": "1" }, "header": { "title": "Header", @@ -83,7 +84,7 @@ }, "additionalProperties": false, "required": [ - "$schema", + "formatVersion", "header" ] } diff --git a/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap index 453969687..3445fe6f0 100644 --- a/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap +++ b/file-formats/sktd/type/zif_aff_sktd_v1.intf.abap @@ -8,11 +8,11 @@ INTERFACE zif_aff_sktd_v1 "!

Object Type

"! Type of the documented object "! $required - type TYPE trobjtype, " TYPE c LENGTH 4, + type TYPE c LENGTH 4, "!

Object Name

"! Name of the documented object "! $required - name TYPE sobj_name, " zif_aff_types_v1=>ty_object_name_30, + name TYPE c LENGTH 40, END OF ty_sktd_documented_object. @@ -20,10 +20,8 @@ INTERFACE zif_aff_sktd_v1 "!

Knowledge Transfer Document Properties

"! KTD properties BEGIN OF ty_main, - "!

Schema

- "! Format version "! $required - schema TYPE string, + format_version TYPE zif_aff_types_v1=>ty_format_version, "!

Header

"! Header "! $required From b2658e3052abddf8f6055132297a410198514169 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Thu, 16 Feb 2023 11:47:18 +0100 Subject: [PATCH 6/8] Change editconfig to ignore trailing spaces --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.editorconfig b/.editorconfig index 59a6e17a1..3ad2ddfc1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,6 +3,13 @@ # top-most EditorConfig file root = true +# ensure the LF line endings for SKTD markdowns +[*.sktd.*.md] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + + # ensure the LF line endings [*.{abap,md,properties,acds,json,mjs,gitignore}] charset = utf-8 From 21ba8513c72953236908c0b6916eb99188804e67 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Thu, 16 Feb 2023 11:52:21 +0100 Subject: [PATCH 7/8] Change order in editconfig --- .editorconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index 3ad2ddfc1..0089085bb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,13 +3,6 @@ # top-most EditorConfig file root = true -# ensure the LF line endings for SKTD markdowns -[*.sktd.*.md] -charset = utf-8 -end_of_line = lf -insert_final_newline = true - - # ensure the LF line endings [*.{abap,md,properties,acds,json,mjs,gitignore}] charset = utf-8 @@ -21,3 +14,12 @@ trim_trailing_whitespace = true [*.json] indent_style = space indent_size = 2 + + +# ensure the LF line endings for SKTD markdowns +[*.sktd.*.md] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + + From f93265a3891ce5f2ef28ad025937aa152ab327e9 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Thu, 16 Feb 2023 11:54:33 +0100 Subject: [PATCH 8/8] Change config for .md in general --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0089085bb..404f9b991 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,7 @@ root = true # ensure the LF line endings -[*.{abap,md,properties,acds,json,mjs,gitignore}] +[*.{abap,properties,acds,json,mjs,gitignore}] charset = utf-8 end_of_line = lf insert_final_newline = true @@ -17,7 +17,7 @@ indent_size = 2 # ensure the LF line endings for SKTD markdowns -[*.sktd.*.md] +[*.md] charset = utf-8 end_of_line = lf insert_final_newline = true