title: converting text file to html file with python
body: <p>I have a text file that contains :</p>
  
  <pre><code>JavaScript              0
  /AA                     0
  OpenAction              1
  AcroForm                0
  JBIG2Decode             0
  RichMedia               0
  Launch                  0
  Colors&gt;2^24             0
  uri                     0
  </code></pre>
  
  <p>I wrote this code to convert the text file to html :</p>
  
  <pre><code>contents = open("C:\\Users\\Suleiman JK\\Desktop\\Static_hash\\test","r")
      with open("suleiman.html", "w") as e:
          for lines in contents.readlines():
              e.write(lines + "&lt;br&gt;\n")
  </code></pre>
  
  <p>but the problem that I had in html file that in each line there is no space between the two columns:</p>
  
  <pre><code>JavaScript 0
  /AA 0
  OpenAction 1
  AcroForm 0
  JBIG2Decode 0
  RichMedia 0
  Launch 0
  Colors&gt;2^24 0
  uri 0 
  </code></pre>
  
  <p>what should I do to have the same  content and the two columns like in text file </p>