Which characters in the parsed text to break line and break paragraph?

Hi team,

I’m using OCR.Space to extract text from handwritten documents. The API response seems to include visual line breaks, but when parsed in my app (Bubble.io), traditional newline characters like \n, \r\n, or even Unicode \u2028 don’t seem to exist — even though the text breaks across lines.

Could you clarify which character(s) are used to represent line breaks or paragraph breaks in the returned ParsedText field?

Thanks a lot!

Actually, it should be \n or \r\n.

If you test the connection with Postman, do you get the same result?

You probably know it, but just in case: Postman is a free app

If you see the problem even with Postman, a screenshot of the result could be helpful.

Thanks for the reply.
The test with Postman indicated in the “parsed text” the presence of “\n” at the end of all lines. We were unable to see a different tag for the end of the last line of a paragraph.

I can confirm that paragraph break and line break use both the same /n character. So the OCR API does not return explicit layout information such as paragraphs directly (except table ocr).

We recommend to use the returned overlay data (bounding boxes x/y) to reconstruct the layout if needed/as needed.