Convert TXT to RST
Turn TXT files into reStructuredText. A reStructuredText document with one paragraph per block of lines, where a block of several lines becomes a line block that keeps every line break and leading indentation.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TXT files on the dialor turn it to pick what to do
Plain text, ready for Sphinx.Each paragraph becomes a reStructuredText block, and line breaks are kept.
What you get
One RST file. Each block of lines in the text becomes one paragraph in the document.
A block of several lines becomes a line block. A line block keeps every line break and the leading indentation of each line, so a poem or an address keeps its lines as you wrote them.
What changes
Runs of spaces inside a line become one space. Text that you lined up with spaces, such as columns, does not keep its alignment. Only the leading indentation of a line is kept.
Going the other way
To turn reStructuredText back into plain text, use RST to TXT. To see the other conversions for this format, go to every RST conversion.
TXT and RST.What each format is.
The formats
Plain Text
Plain text with no formatting at all. The smallest, most portable form of a document.
- Extensions
- .txt .log
- MIME type
- text
/plain - Kind
- Text and data
reStructuredText
reStructuredText, the markup of Python documentation and Sphinx.
- Extensions
- .rst
- MIME type
- text
/x -rst - Kind
- Text and data
In your code.The same TXT to RST conversion through the API, for your app or your agent.
$ cv convert report.txt report.rst$ cv convert report.txt report.rstQuestions.What people ask about TXT to RST.
Yes, for a block of several lines. Such a block becomes a line block that keeps every line break.
Leading indentation is kept in a line block. Runs of spaces inside a line become one space.
No. Runs of spaces inside a line become one space, so columns made with spaces collapse.
No. This conversion has no options, and it produces one file.