sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

Version in XML code snippets causes a line break

Open adinauer opened this issue 1 year ago • 2 comments

Steps to Reproduce

  • Visit https://docs.sentry.io/platforms/java/guides/spring-boot/ and check XML install snippet.
  • Snippet has a line break that's not in the code (<version)

Screenshot 2024-06-04 at 07 49 59

Expected Result

No extra linebreak

Actual Result

A line break is added to XML snippets. See screenshot. Might be happening in other places as well.

Additional Info

Docs code:

<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-spring-boot-starter</artifactId>
    <version>{{@inject packages.version('sentry.java.spring-boot', '4.2.0') }}</version>
</dependency>

adinauer avatar Jun 04 '24 07:06 adinauer

that's due to automatic code block formatting using Prettier @adinauer

a-hariti avatar Jun 05 '24 13:06 a-hariti

How can we fix it? Is there a way to disable the auto formatter for this sample?

adinauer avatar Jun 17 '24 11:06 adinauer