Skip to content

Skip SpringLeadingWhitespace check in text blocks #421

Closed
@philwebb

Description

@philwebb
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">
...

Activity

changed the title [-]Provide option to skip SpringLeadingWhitespace in text-blocks[/-] [+]Skip SpringLeadingWhitespace check in text blocks[/+] on Aug 13, 2024
added this to the 0.0.43 milestone on Aug 13, 2024
added a commit that references this issue on Sep 10, 2024
30ce469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @philwebb

        Issue actions

          Skip SpringLeadingWhitespace check in text blocks · Issue #421 · spring-io/spring-javaformat