Home / Function/ test_single_quotes_to_enforce_trailing_whitespace() — tailwindcss Function Reference

test_single_quotes_to_enforce_trailing_whitespace() — tailwindcss Function Reference

Architecture documentation for the test_single_quotes_to_enforce_trailing_whitespace() function in slim.rs from the tailwindcss codebase.

Entity Profile

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/slim.rs lines 213–234

    fn test_single_quotes_to_enforce_trailing_whitespace() {
        let input = r#"
            div
              'A single quote enforces trailing white space
              = 1234

            .text-red-500.text-3xl
              | This text should be red
        "#;

        let expected = r#"
            div
              'A single quote enforces trailing white space
              = 1234

             text-red-500 text-3xl
              | This text should be red
        "#;

        Slim::test(input, expected);
        Slim::test_extract_contains(input, vec!["text-red-500", "text-3xl"]);
    }

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free