Workaround for carriage returns?
I am testing a workaround for the extra linefeeds/carriage returns than the software introduces automatically while typing a message, and it seems to be working just fine. The workaround was posted here:
http://forums.adobe.com/thread/609762?tstart=0
This message was written normally; no Ent
ers or Backspaces before starting to type. Obviously, the probl
em is still here without the workaround, but seems to go if I firs
t type the two Enters.
Extra linefeeds kindly provided by the software.
Similar Messages
-
What is escape character for for Carriage Return, Line Feed, Form Feed
Hi
I need to a text file which should have following characters
Carriage Return, Line Feed, Form Feed
How do i insert them in a string
i know "\f" is carriage return,
but what are characters for line feed and form feed
Ashishuncle_alice wrote:
jverd wrote:
remus.dragos wrote:
I forgot that it does not exist in Java. A good thing
from my point of view.Running the following makes my computer beep.
public class Bell {
public static void main(String... args) {
System.out.println("\u0007");
Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
>
>
>I forgot that it does not exist in Java. A good thing
from my point of view.
Running the following makes my computer beep.
public class Bell {
public static void main(String... args) {
System.out.println("\u0007");
} Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
Ah, I thought he was saying Java doesn't support ringing the bell. -
Textarea formatting for carriage returns
Hi all,
I've created a websheet that includes a textarea column and have found that while any text entered in edit mode displays a carriage return, as soon as the data has been entered and the field returns to read-only mode the carriage returns are not retained . . . all of the content is displayed in one continuous string. Is there a way to accomplish this?
Note: Using APEX v4
Thanks.
Edited by: arrowjf on Jan 6, 2012 1:18 PM* The TextArea control uses UNIX-style line endings, which
means that text data containing Windows-style carriage-return
line-feed (that is, \r\n) formatting for new lines contain extra
line breaks. You can use String.replace() with a regular expression
to convert the text to UNIX-style line endings, as the following
example shows:
private static const windowsCRLF:RegExp = /\r\n/gm;
myTextString = myTextString.replace(windowsCRLF, "\n");
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_sdk.html -
Stripping variables for carriage returns
Hi all, would appreciate any thoughts on this problem......
Using the Show Me ODBC piece as a guide, I've successfully
imported a table
from an access database. The table comprises three fields
[ID], [Question],
[Response] which are stored as a variable called DB_ODBCData.
This variable
looks something like this:
"1\tQuestion bla bla bla\tResponser bla bla
bla100\r2\tAnother question bla
bla\tAnother response bla bla\r3\Question 3 bla bla........ "
etc etc
I was then able to split this into three separate variables
(eg. varID,
varQuestion, varResponse) by sorting DB_OBDCData as a list.
Everything
looks fine and I'm able to display the correct field in the
correct
variable.
However, if there is a carriage return in the actual field in
the database,
for example.....
Can you confirm the times the following evidence were found:
1) the watch
2) training shoe
....this messes up my variables. It treats the carriage
returns in the
questions as an end of field, consequently (in the example
above) "Can you
confirm...." would be assigned to varQuestion correctly, but
"1) the watch"
ends up in varResponse, and "2) training shoe" ends up in
varID
I have tried to use the Authorware STRIP command to remove
unwanted carriage
returns from the DB_OBDCData variable, but this is
unworkable. It won't
recognise the carriage returns as anything other than "\r",
which
consequently strips away all the field separation and leaves
everything in
one big variable!
Any clues guys as to how I can overcome this problem? I know
the easiest
thing would be to ensure there were no carriage returns in
the actual
database fields, but for other reasons this is impossible to
achieve.
TIA
Reg.You could have just replaced it with something short, like
"~". But
whatever.
"RegTheDonk" <[email protected]> wrote in
message
news:[email protected]...
> Thanks everybody for your help :-)))
>
> Amy, the actual data within the database is inserted "on
the fly" by
> students. Its part of a system that is used for
communicating in critical
> incident simulations - they type in a question which the
"control room"
> answers appropriately. As time and pressure is a factor,
they won't
> adhere
> to any specific rules like not using the carriage
return, or using special
> characters like ~ etc. So Im stuck with what I've got,
> unfortunately....(they won't be to fussed about the
spelling or grammer
> either lol!)
>
> Steve, I'm unable to modify or control the table
structure as the
> databases
> in question are part of a larger, non-open source
programme, specifically
> written for the above purpose. The reason I've been
asked to get involved
> is to make a kind of "3rd party application" where
observers can view the
> communications between students and trainers, to assist
their own
> debriefing
> sessions. The main programme was developed by a company
which offers no
> real support, so its up to the clients to try and make
any improvements on
> the system themselves.
>
> Fortunately, as the first field [ID] always starts with
a number, I tried
> a
> variation of Mike's idea and did a series of REPLACE
statements on the
> variable; eg:
>
> tempString := Replace("\r1", "carriagereturn1",
tempString)
> tempString := Replace("\r2", "carriagereturn2",
tempString)
> tempString := Replace("\r2", "carriagereturn3",
tempString) etc etc,
>
> .... I then STRIPed out all the returns "\r" that were
left, which
> eliminated any returns that the students had typed
themselves....
>
> .... I then re-REPLACEed the "carriagereturn1" with
"\r1" etc.
>
> Its a bit long winded, but blow me - as long as a
student doesn't start an
> input with a number (which should never happen) it
works!
>
> Thanks again everyone for your suggestions....doubtless
I'll be along with
> other problems as this thing gets bigger! lol
>
> Cheers,
>
> Reg.
>
> -
Silent install for patch release 3 waiting for carriage return
I'm trying to get Patch Release 3 (to take my 10.2.0.1.0 installtion to 10.2.0.4.0 on Linux RHEL 5/x64) to install using a ResponseFile so it can be scriptable.
The actual silent install works fine - the problem lies with the patch install - it waits for the carriage return to be pressed oce it has been installed. And since its waiting for the Return key to be pressed, the script hangs.
The command I'm running is
+/oracle/staging/10g/patch/Disk1/runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/staging/10g/patch.rsp << EOF+
EOF
I'm not even sure where to start looking to solve this issue.
Can anyone point me in the right direction please...Hi;
Did you follow patch 8.2 Installing the Oracle Database 10g Patch Set Noninteractively part?
Also see:
ERROR:Oracle 10.2.0.4 Patch Set Return Exit Code -1073741819 [ID 779582.1]
OUI reports a successful silent install when errors are present [ID 793510.1]
Regard
Helios -
Carriage Returns in Message Area
Hi,
I am using a hidden field "P6_SUBMIT_MESSAGE" to store a message that gets generated from a PL/SQL process. I then use the following trick to display that same message in the message area at the top of my page
Process success message
&P6_SUBMIT_MESSAGE.
How can I get carriage returns into this message. I have tried adding chr(10), chr(13) and even '<'br'>' in the PL/SQL process but no luck. If I use chr(13) and my P6_SUBMIT_MESSAGE is a Textarea (not a Hidden field) I can see the desired results in that text area but even then, the carriage returns are not propagated to the message area at the top of the page.
ThanksI know this is not my thread but i just wanted to say, thanks scott! this works! i'm having the same problem as Robert and tried every possible way like he did with the ch(10) and < b r >... but did not realize to change the page item type, i had it as text area also. Now i changed it to display text (does not save state) and used < b r > for carriage return... it works like a charm!
Thanks again,
Marilyn -
How to retain carriage return and spaces in a report..
Hi everyone,
I have a TEXT AREA where users enter comments in that like
First record
Hi Carriage returns spaces
Second record
Hi
carriage returns
spaces
Third record
Hi
carriage returns
spaces
Is it possible to retain the carriage returns and spaces when i am displaying the records in a report.
For carriage returns i replaced chr(10) with '
(without the single quotes). I works fine. But how i can i retain the spacesplease give me some suggestions
Thanks
phaniHi dimitri,
Thanks for the reply
For carriage returns i am doing like this replace(column_name,chr(10),'<"br">') (Ignore the double quotes)
For spaces is there any ASCII code like chr(10) for carriage returns..
I mean how to identify Number of spaces in database..
Thanks
phani
Message was edited by:
phani marella -
Barcode Carriage Return Function not working in Forms 6i
Dear All,
I m using Oracle Forms 6i with OS Windows 2000 Professional
When I receiving Data from Barcode slot reader RS232 interface, carriage Return funtion not working in the forms 6i for e.g Barcode is *12345$M*
('$M' for carriage return). Full ASCII code enabled in my slot reader and carriage return switch is also on, its working fine on note pad.
Please help me in this regard
Thanks in AdvanceHello Muhammad,
Thanks for your reply, but unfortunately, this would not work.
Indeed, when I scan a barcode, the cursor is already in the text field and no event is triggered.
This idea is not to replace the Carriage Return but to have a When-Validate-Item with the Carriage Return sent by the barcode reader.
In Forms, when I scan in a multi-lines text field, the string is displayed and the cursor goes to the next line
But when I scan in a single line text item, it displays the strings but nothing else.
Kind Regards,
Olivier -
Insert carriage return into string
can someone tell me how to insert chars like carriage return in to strings in Labview 6.1 ?
Thanksunder the string subpallette you will have the ability to use constants for carriages return, tab, etc. Also when on the front panel you can right click on any text indicator or control and select Codes Display. This will allow you to see the /n's. Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor -
Jive Auto Carriage Return - Workaround?
After about 20 characters Jive inserts an automatic carriage return. Very annoying.
I have found that if I press enter twice before I start my message I do not get this annoying feature.
Has anyone else found this works for them?
I am using the latest Firefox browser in Vista.Well, I did some further testing here, and your
workaround seems to be working. This time I did not use your wor
karound and the difference shouls be obvious to anyone who i
s not blind. Sorry for the blabla, but I need long sentences to see if the problem is still there or has gone.
Sorry, I left out the link to my additional test messages in the special thread for testing; this was unintentional:
http://forums.adobe.com/message/2709636#2709636 -
Prior to this version of Firefox 36.0.1, the <textarea> in my HTML forms was working; displaying carriage returns. In version 36.0.1 they no longer function properly. Instead when I enter a carriage return, it displays a space instead of a newline. I went to the most basic textarea testing
<textarea> name="comments" cols=20 rows=10 </textarea>
to make sure I wasn't introducing anything with other languages.
I am using Windows 8.1 Pro. I rolled back to Firefox 35.0 and everything works fine. I install 36.0.1 and it stops working.
I have access to another Laptop also running the same version of windows and Firefox and it appears to be doing strange things as well. I am suspicious in that I started noticing this immediately after a windows upgrade last night. The laptop also experienced the issues it is having immediately after a windows update yesterday evening.
I have yet another PC running a different version of windows and Firefox and it too works fine. It looks like the issue is where there is windows 8.1 Pro and Firefox 36.0.1.
Do you guys have any idea what is going on here?
Thanks
JMRAUPE57The current release supports the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap.
The former will prevent Firefox from wrapping the text.
You can check that in the Inspector via the right-click context menu.
*https://developer.mozilla.org/Tools/Page_Inspector
See:
*https://developer.mozilla.org/en-US/Firefox/Releases/36#CSS
<blockquote>The white-space property is now working on <textarea> HTML elements (bug 82711).</blockquote>
See also:
*[[/questions/1050456]] Word wrap problems in 36.0 -
Carriage returns are not working when viewing events!
Before I installed Mt. Lion, I could hold OPTION while hitting RETURN and it ould insert an "invisible" carriage return. This no longer works. Help!!! My calendar is becoming non-functional, as I cannot read my clients' appointments... as there is so much run-on info now.
When creating events, I need to put anywhere from 3-10 lines of text, separated by carriage returns. This is driving me nuts!
Anyone have a fix for this???Carriage returns are not working when viewing events!
Before I installed Mt. Lion, I could hold OPTION while hitting RETURN and it ould insert an "invisible" carriage return. This no longer works. Help!!! My calendar is becoming non-functional, as I cannot read my clients' appointments... as there is so much run-on info now.
When creating events, I need to put anywhere from 3-10 lines of text, separated by carriage returns. This is driving me nuts!
Anyone have a fix for this??? -
Carriage return in textarea - how do I check for and remove it???
I have an html form that has a <textarea> element for user input. I work mainly with Java and some JavaScript. Since carriage returns are permitted in a <textarea> element, upon retrieving the value submitted, my Java and/or JavaScript variables contain carriage returns as well, making the values incomplete.
For Example :
String dataSubmitted = request.getParameter("formInput");
<script language="JavaScript">
var textValue = "<%=dataSubmitted%>";
....//do other stuff
</script>When I view the source of my JSP page, the above statement of code looks like this:
var textValue = "This is some text that
I submitted with a carriage return";I'm putting the text submitted through this form into a mysql database, and when I pull up the values I find that it has recorded the carriage return as well. There is an actual symbol representing a carriage return in the db field.
What I'd like to do is use some Java code to go through each character of the String and find and remove the carriage return, perhaps replacing it with an empty space instead. But how do I check for a carriage return in a String variable?
Also, is there a way to use JavaScript to alert the user when the carriage return button is pressed when they're in the <textarea>?
Any input is appreciated,
Thank You,
-Love2JavaWhat I'd like to do is use some Java code to go through
each character of the String and find and remove the
carriage return, perhaps replacing it with an empty
space instead. But how do I check for a carriage return
in a String variable?The carriage return is represented by the \r. Generally there is also a newline, the \n. You can use String#replaceAll() to replace occurences of them by a space.
string = string.replaceAll("\r\n", " ");
Also, is there a way to use JavaScript to alert the user
when the carriage return button is pressed when they're
in the <textarea>?You can capture keys using the 'onkeypress' attribute. The keyCode of a the return key is 13. So simply catch that:<textarea onkeypress="if (event.keyCode == 13) alert('You pressed the return button.'); return false;"></textarea>The return false prohibits the linebreak being inserted. If you remove that, then it will be inserted anyway. -
Receiver File channel for XML files: with carriage return
Hi all,
we are using a receiver FILE channel to generate an XML file that is sent to an external partner.
The XML file looks good in a parser (IExplorer). But in fact there are not carriage return / line feeds between the XML tags
of the XML payload in the file.
Our partner now requires the XML file in a more vertical structure which means: for every tag a separate line (like it is displayed in a parser)
Does anybody know a more general way to convert to a vertical XML structure (so with carriage return line feed).
There is one entry in the SDN dealing with this topic but suggesting using an UDF. I think this is a very specific way.
I don't think it is a good way to change/enhance the message mapping just because of a general formating change.
Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
any experiences? suggestions? examples?
Thank you very much
best regards
Hans
examples:
original by XI receiver FILE adapter
<?xml version="1.0" encoding="UTF-8"?>
<MT_batchStatus><type>BS</type><header><message><messageSender>SENDER</messageSender><messageDate>20090723143720</messageDate> ... and so on
required:
<?xml version="1.0" encoding="UTF-8"?>
<MT_batchStatus>
<type>BS</type>
<header>
<message>
<messageSender>SENDER</messageSender>
<messageDate>20090723143720</messageDate>
... and so on>
Hans Georg Walter wrote:
> Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
> any experiences? suggestions? examples?
In such a case, the best is to write an generic XSLT or Java mapping that will attempt to do the pretty printing/formatting of the xml.
The advantage of a generic one is that you can reuse the same class/jar for many other scenarios.
so the flow will be as below in your interface mapping;
1. your specific source to target mapping
2. the generic formatting class -
JSP for Vcard cannot strip carriage return in the last line of the file.
I am using JSP to output a Vcard (http://en.wikipedia.org/wiki/VCard)
The following code works great in Windows but fails on the mac:
<%@ page contentType="text/x-vcard" %><%--
--%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
--%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
--%>BEGIN:VCARD
VERSION:2.1
<c:choose><%--
--%><c:when test="${not ((empty param.lan) and (empty param.fin)) }"><%--
--%>N:${param.lan};${param.fin}
FN:${param.fin} ${param.lan}
</c:when><%--
--%><c:otherwise><%--
--%>FN:${param.org}
</c:otherwise><%--
--%></c:choose><%--
--%>ORG:${param.org}
TITLE:${param.title}
TEL;WORK;VOICE:${param.phwork}
ADR;WORK:;;${param.st};${param.city};${param.state};${param.zip};
EMAIL;PREF;INTERNET:${param.email}
REV:20080424T195243Z
<c:out value="${fn:replace('END:VCARD','\\\r','')}" escapeXml="false"/>After some tests, I discovered that Mac (I used Tiger, latest update, not Leopard) needs extra white space and carriage returns stripped off. Once this is achieved, the vcard will automatically import into Address Book. I have followed other forums which advice on using JSP comments as in the code above. But for some strange reason the last line of the JSP outputs an extra carraige return. How do I get rid of the carriage return at the end of the file? the replace function from JSTL is not working.
Edited by: shogo2040 on Dec 18, 2008 7:11 PM : I added more detail to the SubjectI originally had that END:VCARD without any carriage return.
But I still get an extra carriage return at the end when the JSP renders to VCF
I'm using Tomcat running on Linux.
I found this, article which implies (but does not explicitly say) JSP in general adds a newline to the last line:
http://www.caucho.com/resin-3.0/jsp/faq.xtp (But its not tomcat either, so maybe this info is irrelevant).
Edited by: shogo2040 on Dec 22, 2008 3:31 PM - changed rendered to VCF from rendered to JSP
Maybe you are looking for
-
My coverage is within 1 inch either way of Loosing 3g and 4g and phone locks up.
I have just gotten off the phone with their Corporate folks as they were not to impressed with me for filing a complaint with the FCC because of my coverage or should I say lack there of. From what she told me after all the legal mubo jumbo was that
-
Landscape printing in Dot matrix printer
Hi guru's I am working on ECC6.0 My system is connected to a DOT Matrix printer. In transaction VF02, when I try to print Billing document in the dot matrix printer, it is printing in portrait form instead of landscape, but the same document, I am ab
-
My Ipod on my Iphone wont play and I have no volume bar. I can hear when the phone rings and I can hear people talking when they call, it seems to be a software promlem that I dont know how to fix. I have been having this problem and I have realized
-
Blutooth fails on Windows re-boot
I have my iMac 2.8GHz Intel Core Duo running Windows on Bootcamp and it all goes fine, except for the Bluetooth connections between the mouse and the keyboard. Each time I close down and I reopen Windows, the bluetooth keyboard has to be found and re
-
When I turn on the power everthing works except I don't get a VGA, Keyboard, or mouse signal. I can hear the HD spin and I see the HD LED lite up then the CD LED lite up. All the fans work, I've replaced batteries, VGA cards, Power supplies and nothi