View Single Post
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,624
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
I just copied that into textedit and saved it as html... it did the same as you described... so I did a cat -v

Code:
mikeMbp:Desktop mike$ cat -v Untitled.html 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <meta name="Author" content="Mike">
  <meta name="Copyright" content="Mike">
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="1038.11">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times}
  </style>
</head>
<body>
<p class="p1">&lt;html&gt;</p>
<p class="p1">&lt;head /&gt;</p>
<p class="p1">&lt;body&gt;abcd&lt;/body&gt;</p>
<p class="p1">&lt;/html&gt;</p>
</body>
</html>
mikeMbp:
So i edited out the cr@p in vi.

Code:
mikeMbp:Desktop mike$ cat -v Untitled.html 

<html>
<head>
<title></title>
</head>
<body>
abcd
</body>
</html>
and it works. It's not the mac, it's textedit (which I think sucks anyway) try textwrangler, it's LEAPS and BOUNDS better as an editor.

Alternately you can (in textedit) go to Format > Make Plain Text


I hate rich text biased editors.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks