Skip to content

Commit

Permalink
fix rSt code example (#9528)
Browse files Browse the repository at this point in the history
* fix rSt code example

* update tests
  • Loading branch information
chris48s authored Sep 4, 2023
1 parent 1d9a6b0 commit 75affca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/base-service/openapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions core/base-service/openapi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 75affca

Please sign in to comment.