Computer geek, and self-appointed know-it-all, Westley Annis answers all those hard 
questions about anything related to computers and technology, as well as business and 
political questions.

MovableType is Killing My Scripts

Question asked on January 22, 2007 11:16 PM :: :: Comments (0) :: TrackBacks (1)

Setting the Text Formatting option to Convert Line Breaks is the default setting for MovableType and, most likely, all other blog software also. It allows the author to ignore the needed HTML code to separate paragraphs.

As you have discovered, sometimes you don't want the blogging software to automatically add the HTML code. It would seem that setting the Text Formatting option to None would do the trick, but it isn't quite that easy.

Whether it is a bug or a feature, MovableType will look at the contents of your entry, especially any HTML tags and use that as the deciding factor as to whether or not to convert line breaks.

MovableType will stop converting line breaks when it encounters any of the following HTML tags:

  • h1, h2, h3, h4, h5, h6

  • table

  • ol, dl, ul

  • menu

  • dir

  • p

  • pre

  • center

  • form, fieldset, select

  • blockquote

  • address

  • div

  • hr

This means you could wrap your JavaScript code inside of a <div> or <center> element, but you must be careful. If you have one blank line, MovableType will start converting line breaks again. Also, be sure you put all of the JavaScript code inside of element, including the JavaScript header, as shown below:

<script language="javascript" type="text/javascript">
function myFunction()
// -->


1 TrackBacks

Listed below are links to blogs that reference this entry: MovableType is Killing My Scripts.

TrackBack URL for this entry:

» AdultFriendFinder from AdultFriendFinder

I really enjoyed your topic and plan to share your blog with my friends! thanks for taking the time out to write your blog! If you want to learn how to get 100% free access to Adult Friend Finder check out my blog! Read More

Leave a comment

Ask Westley your question on technology, business, or politics!
Add to My Yahoo!
Subscribe in 
NewsGator Online

All Categories
Powered by
Movable Type 4.1
© 2005-2009 by Westley Annis. All Rights Reserved.

Valid XHTML 1.0!