title: How to merge lines of a list into phrases (help to complete the code)?
body: <p>I have a list as follows:</p>
  <pre><code>[
   '&quot;The investment would also benefit the company’s',
   'ongoing commitment to the Kraft Foods Sustainability Programme; substantially reducing material',
   'usage by replacing cardboard boxes with reusable',
   'plastic tote bins and cutting daily vehicle movements through the accurate management of',
   'fixed cyling schedules.&quot;,',
   '&quot;The core brands of Cadbury Roses and Heroes are',
   'produced and packaged at the Bournville production facility. The wrapped chocolates that make',
   'up these assortments have traditionally been',
   'managed through the factory in cardboard boxes.'
  ]
  </code></pre>
  <p>I need to drop <code>&quot;</code> and merge lines into phrases in order to get the following result:</p>
  <pre><code>[
   'The investment would also benefit the company’s ongoing commitment to the Kraft Foods Sustainability Programme; substantially reducing material usage by replacing cardboard boxes with reusable plastic tote bins and cutting daily vehicle movements through the accurate management of fixed cyling schedules.',
   'The core brands of Cadbury Roses and Heroes are produced and packaged at the Bournville production facility.&quot;,
   'The wrapped chocolates that make up these assortments have traditionally been managed through the factory in cardboard boxes.'
  ]
  </code></pre>
  <p>How can I do it?</p>
  <p>This is what I started doing:</p>
  <pre><code>final_list = []
  temp_list = []
  for l in lines:
      temp_list.append(l) 
      if &quot;.&quot; in l:
          phrase = ' '.join(map(str, temp_list)) 
          final_list.append(phrase)
          temp_list = []
  
  final_list
  </code></pre>
  <p>It generates the following output, which is not exactly a match of my expected output:</p>
  <pre><code>[
   '&quot;The investment would also benefit the company’s ongoing commitment to the Kraft Foods Sustainability Programme; substantially reducing material usage by replacing cardboard boxes with reusable plastic tote bins and cutting daily vehicle movements through the accurate management of fixed cyling schedules.&quot;,',
   '&quot;The core brands of Cadbury Roses and Heroes are produced and packaged at the Bournville production facility. The wrapped chocolates that make',
   'up these assortments have traditionally been managed through the factory in cardboard boxes.'
   ]
    
  </code></pre>