formatting text



Hello all,

I'd like to know if there is module for following:

We have text:
=== IN ===
This is just small sentence about nothing.
=== IN ===

And I like to format it as follows:
11111111112
12345678901234567890
=== OUT ===
| This is just |
| small sentence |
| about nothing. |
=== OUT ===

So, I'd like to define "|" as start and as end, word-wrapped text,
and length of line is lets say "20" chars.

I looked into Text::Format module, but it has different functions...
If there is a such a module, it is ok, if not, I will write something
myself, but don't like to reinventing wheel.

Thanks a lot.

/brano

.



Relevant Pages

  • about binaryreader
    ... but i have to use fixed length to read data in file(old format). ... Here fixed length means the count of bytes read not the count of chars read. ... because there are 2-byte chars in the data file. ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Re: LPCSTR, Unicode etc... dont understand
    ... Windows CE uses only double-byte format of charachters for ... You MUST convert all chars to/from double byte formats (Here is one ... key word: "TEXT", ... Many standard well-known APIs exist in twodifferent forms ...
    (microsoft.public.pocketpc.developer)
  • Re: Conditional Format Using AND
    ... but I only want the color change to happen if "PREV" is in column A, ... > your second format condition will always be true and red format ... > Pearson Software Consulting, LLC ...
    (microsoft.public.excel.misc)
  • Re: Tie::File problem (or is it just me?)
    ... > IRC messages are always lines of characters terminated with a CR-LF ... but is there a trick in Windows to get to see which chars ... Use Ctrl O, then under File Format in the new window, choose "Binary", and ...
    (perl.beginners)
  • Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles
    ... and I just blew away all my marker code for something like this;-) ... const char *format, ...) ... struct task_struct *prev; ...
    (Linux-Kernel)

Loading