<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2011://24/tag:forums.movabletype.org,2010://24.19571-</id>
  <updated>2011-09-01T02:20:13Z</updated>
  <title>Comments for Convert line breaks all entries (imported entries)</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2010://24.19571</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=19571" title="Convert line breaks all entries (imported entries)" />
    <published>2010-02-07T20:00:35Z</published>
    <updated>2010-02-08T03:32:08Z</updated>
    <title>Convert line breaks all entries (imported entries)</title>
    <summary>Hi, I imported entries from a Wordpress blog into movable type. Everything worked out really well, except all the paragraphs run together. If I edit an entry, change format from Rich Text to &quot;Convert Line Breaks&quot;, then convert it back...</summary>
    <author>
      <name>Squegie</name>
      <uri>http://www.sqbnet.net/</uri>
    </author>
    
    <category term="General" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>Hi,</p>

<p>I imported entries from a Wordpress blog into movable type.   Everything worked out really well, except all the paragraphs run together.    If I edit an entry, change format from Rich Text to "Convert Line Breaks", then convert it back to Rich Text, the entry is fixed.</p>

<p>Is there a method to do this against all of the entries/pages through MovableType, or would I need to manipulate the database directly?</p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19571-comment:36911</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19571" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html#c36911" />
    <title>Comment from Mihai Bocsaru on 2010-02-07</title>
    <author>
        <name>Mihai Bocsaru</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>What I would recommend is that you connect to the database using a tool like phpmyadmin and you change the 'entry_convert_breaks' column values from "Rich Text" to "Convert Line Breaks".</p>

<p>You would first play with an entry and see which value is assigned to "Rich Text" and which one to "Convert Line Breaks".</p>

<p>Then you would write an SQL command which to update the 'entry_convert_breaks' column from inside the 'mt_entry' table where the 'entry_convert_breaks' is set to something, and the blog id is something, the 'entry_convert_breaks' column' will be something else...</p>]]>
    </content>
    <published>2010-02-07T21:56:03Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19571-comment:36913</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19571" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html#c36913" />
    <title>Comment from Squegie on 2010-02-07</title>
    <author>
        <name>Squegie</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Thanks for the reply Mihai.</p>

<p>I was under the impression that selecting "Convert Line Breaks" performed a browser/client-side conversion to convert line breaks into </p><p> tags.  The change only takes place in the browser until you press the Update button.</p>

<p>If that is the case, then a database edit would require retrieving the entry content from the database, using a regex to parse the text, and then updating the database.</p>

<p>If it turns out I just have to change one column (and publish), that sounds much simpler.  I can try updating it for 1-2 entries, publishing and seeing what happens.</p>]]>
    </content>
    <published>2010-02-07T22:36:39Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19571-comment:36915</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19571" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html#c36915" />
    <title>Comment from Mihai Bocsaru on 2010-02-07</title>
    <author>
        <name>Mihai Bocsaru</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>You're welcome!</p>

<p>I'm an experienced developer, so just trust my judgement and you would solve the problem in an effective manner ;)</p>]]>
    </content>
    <published>2010-02-07T23:00:23Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19571-comment:36919</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19571" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/02/convert-line-breaks-all-entries-imported-entries.html#c36919" />
    <title>Comment from Squegie on 2010-02-07</title>
    <author>
        <name>Squegie</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Well this worked.  Thanks for the great suggestion.  </p>

<pre>
mysql> select entry_id, entry_basename, entry_convert_breaks from mt_entry where entry_convert_breaks IS NOT NULL;
+----------+-----------------------------+----------------------+
| entry_id | entry_basename              | entry_convert_breaks |
+----------+-----------------------------+----------------------+
|      470 | allaboutjohn                | richtext             |
|      471 | site-history                | __default__          |
|      478 | material-things             | __default__          |
|      534 | lentils                     | __default__          |
|      538 | scattered                   | richtext             |
|      539 | floor-fan                   | __default__          |
|      548 | honeymoon-pictures          | 0                    |
|      550 | website_maintenance         | richtext             |
|      549 | basement-junk-and-treasures | __default__          |
+----------+-----------------------------+----------------------+
9 rows in set (0.00 sec)

<p>mysql>  update mt_entry set entry_convert_breaks = "__default__" where entry_convert_breaks IS NOT NULL;<br />
</p></pre>]]>
    </content>
    <published>2010-02-08T03:32:08Z</published>
  </entry>

</feed>

