{
  "slug": "remove-empty-lines",
  "name": "gizza-ai/remove-empty-lines",
  "version": "0.1.0",
  "title": "Remove Empty Lines — delete blank & whitespace-only lines — gizza.ai",
  "description": "Delete all blank and whitespace-only lines to compact your text, or collapse runs of blank lines to one. Free and private — runs in your browser, nothing is uploaded.",
  "tags": [
    "remove empty lines",
    "delete blank lines",
    "empty line remover",
    "remove whitespace lines",
    "collapse blank lines",
    "compact text"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/remove-empty-lines/",
    "markdown": "https://gizza.ai/tools/remove-empty-lines/index.md",
    "descriptor": "https://gizza.ai/tools/remove-empty-lines/tool.json",
    "deep_link_example": "https://gizza.ai/tools/remove-empty-lines/?text=Paste%20text%20with%20blank%20lines%20to%20remove%E2%80%A6&mode=remove&whitespace_only=true&trim_lines=true"
  },
  "cli": "gizza tool remove-empty-lines \"Paste text with blank lines to remove…\"",
  "tool": {
    "description": "Remove empty lines from text, compacting it. mode=remove (default) deletes every blank line; mode=collapse reduces runs of 2+ consecutive blank lines to a single blank line. whitespace_only=true (default) also deletes lines that contain only spaces/tabs; trim_lines=true trims leading/trailing whitespace from each kept line. Returns the compacted text plus total/removed/kept line counts. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "mode": {
          "default": "remove",
          "description": "remove = delete every empty line (no gaps); collapse = reduce runs of 2+ consecutive empty lines to a single blank line (keeps paragraph spacing). Default remove.",
          "enum": [
            "remove",
            "collapse"
          ],
          "type": "string"
        },
        "text": {
          "description": "The text to compact. Blank and (by default) whitespace-only lines are deleted.",
          "type": "string"
        },
        "trim_lines": {
          "default": false,
          "description": "Trim leading and trailing whitespace from each kept line. Default false.",
          "type": "boolean"
        },
        "whitespace_only": {
          "default": true,
          "description": "Also treat lines containing only spaces/tabs (or any whitespace) as empty, not just literally-empty lines. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}