Metadata-Version: 2.4
Name: minimindslab-text-block-dedent
Version: 0.1.0
Summary: Dedent multiline text blocks while preserving relative indentation and optionally stripping leading/trailing blank lines.
Author: MiniMindsLab
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# MiniMindsLab Text Block Dedent

A tiny, deterministic helper for normalizing multiline text blocks.

## What it does

- Removes only the shared left indentation from non-blank lines.
- Preserves deeper relative indentation.
- Optionally strips leading and trailing blank lines.

## Install

This package is pure Python and uses only the standard library.

## Usage

```python
from minimindslab_text_block_dedent import dedent_block

text = """
        Hello
          World
"""

print(dedent_block(text, strip_blank_lines=True))
# Hello
#   World
```

## API

`dedent_block(text: str, *, strip_blank_lines: bool = False) -> str`

- `text`: input string to normalize.
- `strip_blank_lines`: when `True`, leading/trailing blank lines are removed first.
