Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Reformat Paragraphs

This program replaces all the

elements in an HTML document that span multiple lines with

elements that are on one line.

Suppose you had a paragraph that looked like this:

This is the sample paragraph.

The program would turn it into this:

This is the sample paragraph.

To run the program type:

python replace.py [MyFile.html]

For instance:

python replace.py MediaWiki.html. 

The output will be a copy of MediaWiki.html with all the

elements on one line. To write the file to disk, write the following:

python replace.py MediaWiki.html > Result.html