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

Skip SpringLeadingWhitespace check in text blocks #421

Closed
philwebb opened this issue Aug 13, 2024 · 0 comments
Closed

Skip SpringLeadingWhitespace check in text blocks #421

philwebb opened this issue Aug 13, 2024 · 0 comments

Comments

@philwebb
Copy link
Contributor

Spring Security is moving to text-blocks for HTML rendering and getting a lot of failures. Inside the text-blocks, the content is space-indented but Spring Security is tabs-indented.

We currently don't support this mix.

Example problematic code with \t and \s for visibility:

\tprivate static final String LOGOUT_PAGE_TEMPLATE = """
\t\t\t<!DOCTYPE html>
\t\t\t<html lang="en">
\t\t\t\s\s<head>
\t\t\t\s\s\s\s<meta charset="utf-8">
\t\t\t\s\s\s\s<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
...
@philwebb philwebb changed the title Provide option to skip SpringLeadingWhitespace in text-blocks Skip SpringLeadingWhitespace check in text blocks Aug 13, 2024
@philwebb philwebb added this to the 0.0.43 milestone Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant