<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:14.0pt;
        font-family:"Palatino Linotype";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {font-family:"Palatino Linotype";
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1><pre><font size=2 face="Courier New"><span
style='font-size:10.0pt'>MCDONNELL, LARRY wrote:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> I have a form that the field length for that element is set to 65k in </span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> the database. Using a textbox, the person can enter their information. I </span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> now want to view the text. I can again use a text box but what I want to </span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> do is this &#8211;</span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> </span></i></span></font></pre><pre><font size=2
face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> &lt;dtml-var mytext&gt;</span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp; &gt;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> If I use this format, the text is one line. Are there arguments or a </span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&gt;<i><span
style='font-style:italic'> script that will add carriage return/line feed after you set the parameters?</span></i></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>You can wrap it in HTML &lt;pre&gt; tags. This preserves formatting on layout.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Otherwise, you'll have to replace the newlines in your text with &lt;br/&gt; </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>tags. Products.PythonScripts.standard.newline_to_br will do this for </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>you, as will the newline_to_br attribute on the dtml-var tag. (You can </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>find this in the Zope online help.)</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --jcc</span></font></pre>

<p class=MsoNormal><font size=3 face="Palatino Linotype"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<!--endarticle-->

<p class=MsoNormal><font size=3 face="Palatino Linotype"><span
style='font-size:12.0pt'>Thanks for the help, it seems my company blocks lists
so I did not get your response until this morning when I checked the archives.</span></font></p>

<p class=MsoNormal><font size=3 face="Palatino Linotype"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>Thanks,</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>Larry McDonnell</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>Coordinator of Educational Technology</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>New Haven Public Schools</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
  style='font-size:14.0pt'>54 Meadow Street</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
  style='font-size:14.0pt'>New Haven</span></font>, CT 06519</p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'><a href="mailto:larry.mcdonnell@new-haven.k12.ct.us">larry.mcdonnell@new-haven.k12.ct.us</a></span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>(203) 946-2440</span></font></p>

<p class=MsoNormal><font size=4 face="Palatino Linotype"><span
style='font-size:14.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>