{"uid":"cap_fkW2WGS0DlXoVJ_BeVtUh","slug":"pennyrail-text-remove-empty-lines-a2ae7f53","name":"PennyRail Text – Remove Empty Lines","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.remove-empty-lines--remove-blank-lines","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dvlXTRT5CqPmzHyOJTHUL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes empty and blank lines from a given text string, returning the cleaned text.","exampleAgentPrompt":"Take this multiline text and strip out all the empty and blank lines: 'Hello\\n\\nWorld\\n\\n\\nFoo\\n'","exampleUseCases":[{"title":"Clean up pasted log output","prompt":"I copied some log output and it has tons of blank lines in it — can you remove all the empty lines from this text so it's easier to read?"},{"title":"Normalize user-submitted form text","prompt":"A user submitted a bio with a bunch of blank lines scattered throughout. Strip out all the empty lines so it looks clean before we save it."},{"title":"Tidy up code snippet for display","prompt":"This code snippet has extra blank lines between every statement. Remove all the empty lines so it's compact and ready to display."}],"resultDescription":"Returns a cleaned text object containing the input string with all empty and blank lines removed, leaving only lines that contain non-whitespace content.","failureModes":["Missing 'input' field returns a validation error","Input that is entirely empty or whitespace may return an empty string","Non-string input types may cause a 400 or schema error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a simple, paid microservice call to strip empty or blank lines from text without setting up your own string-processing logic. Ideal for agent workflows that need lightweight text normalization as a composable step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:56.214Z","isFirstParty":false}