<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>An update: </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>A closer look revealed that not ALL line breaks spells
trouble.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>- If the entered textarea data</FONT> <FONT
face=Arial color=#0000ff size=2>does not start with an integer, things work as I
expect ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>- ... but if it starts with an integer?
Trouble!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>An example, fetched from the actual form – and when I say
"cell" and stuff like that I'm ofc talking about the exported CSV
file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>If, in a textarea field, you enter an address like
this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>321 W. 4th Ave., Suite 101</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Anchorage, AK 98765</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>USA</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>- Line 1 will be placed in the designated
cell</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>- Line 2 will be placed in the first cell of the
next row</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>- Line 3 will be placed in the first cell of the next
row</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>(So a single entry creates three lines in the
Excel sheet, instead of one. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Moreover, the cell order is "shifted", creating a terrible
output: data that should be placed in the cell after the "address" cell is now
placed in the second cell of line #3 and so on.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>But if the address was this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Norwegian Polar Institute</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Fram Centre</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>9296 Tromsø</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>or even this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>1255-351 St Mary Blvd<BR>Gatinbleu, QC<BR>K2A
0C3</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Everything (including the line breaks) is placed in the
designated cell and all is good.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>I have the module source, but I don't have much time
on my hands ATM to dig very much in it. Can someone (the author?) please point
me to what I need to modify?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699314212-16022011><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Paul-Inge
Flakstad<BR><B>Sent:</B> 16. februar 2011 12:35<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> [opencms-dev] Alkacon OAMP Webform module:
Line breaks in input fields messes up CSV export (Excel)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=174390411-16022011>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=174390411-16022011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=174390411-16022011>Line
breaks entered into a textarea input field messes up the
resulting Excel file (when exporting as CSV).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=174390411-16022011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=174390411-16022011>Each line
succeeding the first line break in a textarea field becomes a new row in
Excel. I don't know a whole lot about Excel, and I don't plan to either, but
this seems to me like a bug in the Webform module. Is it? Or is it just the
way it should be?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=174390411-16022011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=174390411-16022011>Best
regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=174390411-16022011>Paul</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>