Skip to content

Skip SpringLeadingWhitespace check in text blocks #421

Closed
@philwebb

Description

@philwebb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions