<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Reformatting pasted text</title>
	<link>http://ask.metafilter.com/54105/Reformatting-pasted-text/</link>
	<description>Comments on Ask MetaFilter post Reformatting pasted text</description>
	<pubDate>Sun, 31 Dec 2006 08:31:53 -0800</pubDate>
	<lastBuildDate>Sun, 31 Dec 2006 08:31:53 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Reformatting pasted text</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text</link>	
		<description>Coding question:  What is the best/easiest way to preserve typographical formatting (like nbsp&apos;s, line breaks) of pasted text that will be stored in a database and later displayed in boxes of arbitrary size?   &lt;br /&gt;&lt;br /&gt; The problem is not exactly that I can&apos;t do this, just that the current method is incredibly anal and cludgy--I am overthinking this.  The end result should be having text displayed so that scaling the dimensions of the box (w/ javascript) keeps all the paragraphs and doesn&apos;t have the text overflow, and doesn&apos;t require computing the pixels of all the letters on a line..</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.54105</guid>
		<pubDate>Sun, 31 Dec 2006 07:05:39 -0800</pubDate>
		<dc:creator>shownomercy</dc:creator>
		
			<category>text</category>
		
			<category>formatting</category>
		
			<category>coding</category>
		
			<category>perl</category>
		
			<category>javascript</category>
		
	</item> <item>
		<title>By: Khalad</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#814903</link>	
		<description>Is this text preformatted or is the browser going to do wordwrapping?&lt;br&gt;
&lt;br&gt;
Fixed or variable width font?&lt;br&gt;
&lt;br&gt;
Is this code? Prose? Something else?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.54105-814903</guid>
		<pubDate>Sun, 31 Dec 2006 08:31:53 -0800</pubDate>
		<dc:creator>Khalad</dc:creator>
	</item><item>
		<title>By: shownomercy</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#814917</link>	
		<description>This text is preformatted arbitrarily as it is user submitted, and then probably some magic reformats it to get rid of arbitrary line breaks etc.  Should work for prose and code and poetry.  Essentially I don&apos;t want to cause problems with different browsers with how it&apos;s displayed.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.54105-814917</guid>
		<pubDate>Sun, 31 Dec 2006 08:45:54 -0800</pubDate>
		<dc:creator>shownomercy</dc:creator>
	</item><item>
		<title>By: Khalad</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#814933</link>	
		<description>Hm, I&apos;m not clear on what you&apos;re trying to do exactly. How about an easy question: why is plain text insufficient? It would preserve spacing and line breaks.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.54105-814933</guid>
		<pubDate>Sun, 31 Dec 2006 09:08:21 -0800</pubDate>
		<dc:creator>Khalad</dc:creator>
	</item><item>
		<title>By: Roger Dodger</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#815101</link>	
		<description>Strip any undesired formatting.  Insert your own nbsp and html tags where desired, then store that plain text in the database.  When pulled out of the database, drop it into it&apos;s own div and let browser handle all of the formatting.  Easy peasy.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.54105-815101</guid>
		<pubDate>Sun, 31 Dec 2006 12:53:25 -0800</pubDate>
		<dc:creator>Roger Dodger</dc:creator>
	</item><item>
		<title>By: Mikey-San</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#815402</link>	
		<description>Whatever you do, keep in mind what &quot;nbsp&quot; stands for, and what that means. Many people just think &quot;oh, it&apos;s a space&quot; when in fact, it&apos;s more than just a regular space.&lt;br&gt;
&lt;br&gt;
http://en.wikipedia.org/wiki/Non-breaking_space</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54105-815402</guid>
		<pubDate>Mon, 01 Jan 2007 01:14:26 -0800</pubDate>
		<dc:creator>Mikey-San</dc:creator>
	</item><item>
		<title>By: tmcw</title>
		<link>http://ask.metafilter.com/54105/Reformatting-pasted-text#815524</link>	
		<description>If you&apos;re caught up on scaling the size of the box along with the text and keeping them relatively correct, look into sizing the box &amp;amp; text using ems instead of pixels.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54105-815524</guid>
		<pubDate>Mon, 01 Jan 2007 12:06:32 -0800</pubDate>
		<dc:creator>tmcw</dc:creator>
	</item>
	</channel>
</rss>
