diff --git a/core/base-service/openapi.js b/core/base-service/openapi.js index a5399a328cdce..d32eead5da582 100644 --- a/core/base-service/openapi.js +++ b/core/base-service/openapi.js @@ -31,7 +31,7 @@ function getCodeSamples(altText) { { lang: 'reStructuredText', label: 'rSt', - source: `.. image:: $url\n: alt: ${altText}`, + source: `.. image:: $url\n :alt: ${altText}`, }, { lang: 'AsciiDoc', diff --git a/core/base-service/openapi.spec.js b/core/base-service/openapi.spec.js index 0577f078e682c..13968bea7a96e 100644 --- a/core/base-service/openapi.spec.js +++ b/core/base-service/openapi.spec.js @@ -192,7 +192,7 @@ const expected = { { lang: 'reStructuredText', label: 'rSt', - source: '.. image:: $url\n: alt: OpenApiService Summary', + source: '.. image:: $url\n :alt: OpenApiService Summary', }, { lang: 'AsciiDoc', @@ -248,7 +248,7 @@ const expected = { lang: 'reStructuredText', label: 'rSt', source: - '.. image:: $url\n: alt: OpenApiService Summary (with Tag)', + '.. image:: $url\n :alt: OpenApiService Summary (with Tag)', }, { lang: 'AsciiDoc', @@ -301,7 +301,7 @@ const expected = { { lang: 'reStructuredText', label: 'rSt', - source: '.. image:: $url\n: alt: LegacyService Title (with Tag)', + source: '.. image:: $url\n :alt: LegacyService Title (with Tag)', }, { lang: 'AsciiDoc', @@ -347,7 +347,7 @@ const expected = { { lang: 'reStructuredText', label: 'rSt', - source: '.. image:: $url\n: alt: LegacyService Title (with Tag)', + source: '.. image:: $url\n :alt: LegacyService Title (with Tag)', }, { lang: 'AsciiDoc',