From: Tripp, B. <Bry...@uh...> - 2004-07-28 03:19:40
|
Hi Alan, That sounds like the thing to do. I can't think of a reason against, so if nobody else speaks up I'll make this change in HEAD as well. Bryan > -----Original Message----- > From: Alan Shields [mailto:ala...@bt...] > Sent: July 27, 2004 7:14 AM > To: hl7...@li... > Subject: [HAPI-devel] linefeeds and \.br\ > > > Hi all, > After years of splitting my report text over several OBX messages > somebody just asked me to send a single obx with \.br\ to signify > linefeeds. > > At first I thought of replacing the linefeeds with \.br\ in my code, > unfortunately HAPI escapes the \ to give me, \E\.br\E\. > > In the end I added the following line to > ca/uhn/hl7v2/parser/Escape.java > seqs.put("\\.br\\", String.valueOf('\n')); > > which works a treat for my outgoing messages, though I > haven't tried it > to see what happens if somebody sends me a \.br\ > > Is this a reasonable approach? > Is it possible for me to indicate to HAPI that I want to insert an > escape sequence? > Is there any reason anybody would NOT want HAPI to simply replace > linefeeds with \.br\ ? > > Cheers > Alan Shields > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |