Metadata-Version: 2.4
Name: minimindslab-multiline-indented-block
Version: 0.1.0
Summary: Extract and normalize the common indentation of a multiline text block, returning a dedented string while preserving internal relative indentation and blank lines.
Author: MiniMindsLab
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# MiniMindsLab Multiline Indented Block

`minimindslab-multiline-indented-block` is a tiny pure-Python helper for normalizing multiline text.

It removes only the indentation prefix that is common to all non-blank lines, preserving:
- line order,
- internal relative indentation,
- blank lines.

## Installation

```bash
pip install minimindslab-multiline-indented-block
```

## Usage

```python
from minimindslab_multiline_indented_block import dedent_block

text = """
        alpha
          beta
        gamma
"""

print(dedent_block(text))
# "\nalpha\n  beta\ngamma\n"
```

## Deterministic tab/space rule

Common indentation is computed as the longest exact character-prefix shared by all non-blank lines, considering only leading spaces (`' '`) and tabs (`'\t'`).

This means tabs and spaces are **not** converted or expanded. They are treated as literal characters. Only the exact shared leading sequence is removed.

## API

### `dedent_block(text: str) -> str`
Return `text` with common indentation removed from non-blank lines.

- Raises `TypeError` if `text` is not a string.
- Empty and all-blank inputs are returned unchanged.
