Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Avoid losing Line breaks and Carriage returns
PostPosted: January 24th, 2009, 12:00 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I've already solved a problem I had encountered, thought I'd post the 'fix' here for others.

I had a Text Input box. At runtime that input was captured and Encrypted. Upon Decryption, the 'whitespace' was gone. I lost Line Feeds and Carriage Returns. (same could happen for 'Tabs').

Note: the operation does not have to be encryption. The same problem could arise if capturing the input and writing it to a Database and later reading it back in. May apply to certain modes of writing to Files (I did not go there).

In Opus, the solution is simple:
It all hinges on the set-up of the Text Input box.

The Text Input box needs to have the following settings:
Uncheck --- Tab skips to next textbox
Uncheck --- Enter skips to next textbox
Check Radio --- Input type is MULTIPLE LINE

--- once that’s done, text that is typed or pasted having line/paragraph breaks… will retain those 'arrangement' Char Codes. In my case, retained within the Ciphertext, and on the decrypt cycle TEXT WHITESPACE DISPLAYS CORRECTLY.
--- this configuration/'fix' probably applies to a few other situations where you want to place and then retrieve text.


Cheers.

BTW, for scripting or for other specific needs to divide sections of text... do a Search for using these: \n \t [Edit-Lar, corrected: is '\' not '/'. Also for search: new line or line break, etc.]

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 74 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group