> ## Documentation Index
> Fetch the complete documentation index at: https://sensible.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Split lines

Splits lines distributed along a horizontal axis. This preprocessor is most useful for typewriter-style documents that use whitespaces for formatting.

## Parameters

**Note:** For the full list of parameters available for this method, see [Global parameters for methods](/senseml-reference/field-query-object/method#global-parameters-for-methods). The following table shows parameters most relevant to or specific to this method.

| key                      | value      | description                                                                                                                                                                                                                                                                    |
| ------------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| type (**required**)      | splitLines | splits lines distributed along a horizontal axis.                                                                                                                                                                                                                              |
| minSpaces (**required**) | number     | The number of consecutive whitespace characters ( ) at or above which to split lines.                                                                                                                                                                                          |
| separator                | string     | Modifies the Min Spaces parameter to split on the specified character, for example "-", instead of the default whitespace character. For example, if you specify "-" for this parameter and 2 for the Min Spaces parameter, then Sensible splits lines when it finds <br />--. |

## Examples

The following example shows solving undersplit lines in a "typewritten" style document. The Split Lines preprocessor preserves columns and rows in this document.

**PROBLEM**

Without the Split Lines preprocessor, Sensible merges the lines too aggressively:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/split_lines_2.png)

**SOLUTION**

**Config**

```JSON JSON 
{
  "preprocessors": [
    {
      "type": "splitLines",
      "minSpaces": 3
    }
  ],
  "fields": [
    {
      "id": "policy_number",
      "method": {
        "id": "row",
      },
      "anchor": "policy number",
    }
  ]
}
```

**Example document**

The following image shows the example document used with this example config:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/split_lines.png)

| Example document | [Download link](https://raw.githubusercontent.com/sensible-hq/sensible-docs/main/readme-sync/assets/v0/pdfs/split%5Flines.pdf) |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |

**Output**

```JSON JSON 
{
  "policy_number": {
    "type": "string",
    "value": "18-376-190"
  }
}
`
```
