title: normalize-space not working on scrapy
body: <p>I am trying to extract chapter titles and their subtitles from a web page in the url. This is my spider </p>
  
  <pre><code>import scrapy
  from ..items import ContentsPageSFBItem
  
  class BasicSpider(scrapy.Spider):
      name = "contentspage_sfb"
      #allowed_domains = ["web"]
      start_urls = [
          'https://www.safaribooksonline.com/library/view/shell-programming-in/9780134496696/',
      ]
  
      def parse(self, response):
              item = ContentsPageSFBItem()
              item['content_item'] = response.xpath('normalize-space(//ol[@class="detail-toc"]//*/text())').extract();
              length = len(response.xpath('//ol[@class="detail-toc"]//*/text()').extract()); #extract()
              full_url_list = list();
              title_list = list();
              for i in range(1,length+1):
                  full_url_list.append(response.url)  
              item["full_url"] = full_url_list
              title = response.xpath('//title[1]/text()').extract();
              for j in range(1,length+1):
                  title_list.append(title)  
              item["title"] = title_list
              return item
  </code></pre>
  
  <p>Even though I use the normalise fucntion in my xpath to remove the spaces, I get the following result in my csv</p>
  
  <pre><code>content_item,full_url,title
  "
  
        ,Chapter 1,
  
  
  
        ,
  
  
    ,
  
        ,Instructor Introduction,
  
        ,00:01:00,
  
  
  
    ,
  
    ,
  
        ,Course Overview,
  </code></pre>
  
  <p>How do I get the result with at most only one new line after each entry?</p>