Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples should not combine trimTrailingWhitespace with *.md (Markdown) #1877

Closed
Marcono1234 opened this issue Nov 6, 2023 · 0 comments · Fixed by #1880
Closed

Examples should not combine trimTrailingWhitespace with *.md (Markdown) #1877

Marcono1234 opened this issue Nov 6, 2023 · 0 comments · Fixed by #1880

Comments

@Marcono1234
Copy link
Contributor

The examples for the Gradle and Maven plugin show the combination of using trimTrailingWhitespace for *.md (Markdown) files:

// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()

<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
<trimTrailingWhitespace/>

The problem is that Markdown uses two trailing spaces for hard line breaks. So applying these examples will most likely break formatting of some Markdown files.

It would be good if the examples either did not use *.md, or did not use trimTrailingWhitespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant