title: code generating incorrect HTML code
body: <p>Input:-    </p>
  
  <pre><code>   CRlist
    [['CR', 'FA', 'CL', 'TITLE'], ['409452', 'WLAN', '656885', 'Age out RSSI values from buffer in Beacon miss scenario'], ['379104', 'BT', '656928', 'CR379104: BT doesn\xe2\x80\x99t work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode.']]
  </code></pre>
  
  <p>I have the following pythong code to generate HTML code but its generating an output which am not expecting,I pring the array values before which seem to have right data here but while using.format something is getting messedup..can anyone point what is wrong here?</p>
  
  <pre><code>for i in range(len(CRlist)):
      if i==0:
          continue
      for j in range(len(CRlist[0])):
          print "i"
          print i
          print "j"
          print j
          print "CRlist[i][j]"
          print CRlist[i][j]//right data here
          CRstring += """
          &lt;tr&gt;
          &lt;td&gt;&lt;a href="{CR}"&gt;{CR}&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;{FA}&lt;/td&gt;
          &lt;td&gt;{CL}&lt;/td&gt;
          &lt;td&gt;{Title}&lt;/td&gt;
          &lt;/tr&gt;""".format(
              CR=CRlist[i][j],
              FA=CRlist[i][j],
              CL=CRlist[i][j],
              Title=CRlist[i][j],
              )
  CRstring += "\n&lt;/table&gt;\n"
  </code></pre>
  
  <p>My expectation of output but is getting created incorrectly</p>
  
  <pre><code>   &lt;tr&gt;
     &lt;td&gt;&lt;a href="409452"&gt;409452&lt;/a&gt;&lt;/td&gt;
     &lt;td&gt;WLAN&lt;/td&gt;
     &lt;td&gt;656885&lt;/td&gt;
     &lt;td&gt;Age out RSSI values from buffer in Beacon miss scenario&lt;/td&gt;
     &lt;/tr&gt;
      ..............
  </code></pre>
  
  <p>Actual output,as you can the row cell data is redundant</p>
  
  <pre><code>                   &lt;tr&gt;
                     &lt;td&gt;&lt;a href="409452"&gt;409452&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;409452&lt;/td&gt;
                     &lt;td&gt;409452&lt;/td&gt;
                     &lt;td&gt;409452&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="WLAN"&gt;WLAN&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;WLAN&lt;/td&gt;
                     &lt;td&gt;WLAN&lt;/td&gt;
                     &lt;td&gt;WLAN&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="656885"&gt;656885&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;656885&lt;/td&gt;
                     &lt;td&gt;656885&lt;/td&gt;
                     &lt;td&gt;656885&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="Age out RSSI values from buffer in Beacon miss scenario"&gt;Age out RSSI values from buffer in Beacon miss scenario&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;Age out RSSI values from buffer in Beacon miss scenario&lt;/td&gt;
                     &lt;td&gt;Age out RSSI values from buffer in Beacon miss scenario&lt;/td&gt;
                     &lt;td&gt;Age out RSSI values from buffer in Beacon miss scenario&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="379104"&gt;379104&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;379104&lt;/td&gt;
                     &lt;td&gt;379104&lt;/td&gt;
                     &lt;td&gt;379104&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="BT"&gt;BT&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;BT&lt;/td&gt;
                     &lt;td&gt;BT&lt;/td&gt;
                     &lt;td&gt;BT&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="656928"&gt;656928&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;656928&lt;/td&gt;
                     &lt;td&gt;656928&lt;/td&gt;
                     &lt;td&gt;656928&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                     &lt;td&gt;&lt;a href="CR379104: BT doesnΓÇÖt work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode."&gt;CR379104: BT doesnΓÇÖt work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode.&lt;/a&gt;&lt;/td&gt;
                     &lt;td&gt;CR379104: BT doesnΓÇÖt work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode.&lt;/td&gt;
                     &lt;td&gt;CR379104: BT doesnΓÇÖt work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode.&lt;/td&gt;
                     &lt;td&gt;CR379104: BT doesnΓÇÖt work that Riva neither sends HCI Evt for HID ACL data nor response to HCI_INQUIRY after entering into pseudo sniff subrating mode.&lt;/td&gt;
                     &lt;/tr&gt;
  /table&gt;
  </code></pre>
  
  <p>=========PLlist==========</p>