Wrap Words FIXED

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Please wrap the lines after the number of characters given in line one.

Comments welcome: daniel --- agac.de a.k.a. dcutter

This version should no longer turn spaces into tabs.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

76
You will rejoice to hear that no disaster has accompanied the commencement of an enterprise which you have regarded with such evil forebodings.  I arrived here yesterday, and my first task is to assure my dear sister of my welfare and increasing confidence in the success of my undertaking.

I am already far north of London, and as I walk in the streets of Petersburgh, I feel a cold northern breeze play upon my cheeks, which braces my nerves and fills me with delight.  Do you understand this feeling?  This breeze, which has travelled from the regions towards which I am advancing, gives me a foretaste of those icy climes. Inspirited by this wind of promise, my daydreams become more fervent and vivid.  I try in vain to be persuaded that the pole is the seat of frost and desolation; it ever presents itself to my imagination as the region of beauty and delight.  There, Margaret, the sun is forever visible, its broad disk just skirting the horizon and diffusing a perpetual splendour.  There--for with your leave, my sister, I will put some trust in preceding navigators--there snow and frost are banished; and, sailing over a calm sea, we may be wafted to a land surpassing in wonders and in beauty every region hitherto discovered on the habitable globe.  Its productions and features may be without example, as the phenomena of the heavenly bodies undoubtedly are in those undiscovered solitudes.  What may not be expected in a country of eternal light?  I may there discover the wondrous power which attracts the needle and may regulate a thousand celestial observations that require only this voyage to render their seeming eccentricities consistent forever.  I shall satiate my ardent curiosity with the sight of a part of the world never before visited, and may tread a land never before imprinted by the foot of man. These are my enticements, and they are sufficient to conquer all fear of danger or death and to induce me to commence this laborious voyage with the joy a child feels when he embarks in a little boat, with his holiday mates, on an expedition of discovery up his native river. But supposing all these conjectures to be false, you cannot contest the inestimable benefit which I shall confer on all mankind, to the last generation, by discovering a passage near the pole to those countries, to reach which at present so many months are requisite; or by ascertaining the secret of the magnet, which, if at all possible, can only be effected by an undertaking such as mine.

Sample output:

You will rejoice to hear that no disaster has accompanied the commencement
of an enterprise which you have regarded with such evil forebodings.  I
arrived here yesterday, and my first task is to assure my dear sister of my
welfare and increasing confidence in the success of my undertaking.

I am already far north of London, and as I walk in the streets of
Petersburgh, I feel a cold northern breeze play upon my cheeks, which
braces my nerves and fills me with delight.  Do you understand this
feeling?  This breeze, which has travelled from the regions towards which I
am advancing, gives me a foretaste of those icy climes. Inspirited by this
wind of promise, my daydreams become more fervent and vivid.  I try in vain
to be persuaded that the pole is the seat of frost and desolation; it ever
presents itself to my imagination as the region of beauty and delight. 
There, Margaret, the sun is forever visible, its broad disk just skirting
the horizon and diffusing a perpetual splendour.  There--for with your
leave, my sister, I will put some trust in preceding navigators--there snow
and frost are banished; and, sailing over a calm sea, we may be wafted to a
land surpassing in wonders and in beauty every region hitherto discovered
on the habitable globe.  Its productions and features may be without
example, as the phenomena of the heavenly bodies undoubtedly are in those
undiscovered solitudes.  What may not be expected in a country of eternal
light?  I may there discover the wondrous power which attracts the needle
and may regulate a thousand celestial observations that require only this
voyage to render their seeming eccentricities consistent forever.  I shall
satiate my ardent curiosity with the sight of a part of the world never
before visited, and may tread a land never before imprinted by the foot of
man. These are my enticements, and they are sufficient to conquer all fear
of danger or death and to induce me to commence this laborious voyage with
the joy a child feels when he embarks in a little boat, with his holiday
mates, on an expedition of discovery up his native river. But supposing all
these conjectures to be false, you cannot contest the inestimable benefit
which I shall confer on all mankind, to the last generation, by discovering
a passage near the pole to those countries, to reach which at present so
many months are requisite; or by ascertaining the secret of the magnet,
which, if at all possible, can only be effected by an undertaking such as
mine.

Sample input:_

62
The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden, there came through the open door the heavy scent of the lilac, or the more delicate perfume of the pink-flowering thorn.

From the corner of the divan of Persian saddle-bags on which he was lying, smoking, as was his custom, innumerable cigarettes, Lord Henry Wotton could just catch the gleam of the honey-sweet and honey-coloured blossoms of a laburnum, whose tremulous branches seemed hardly able to bear the burden of a beauty so flamelike as theirs; and now and then the fantastic shadows of birds in flight flitted across the long tussore-silk curtains that were stretched in front of the huge window, producing a kind of momentary Japanese effect, and making him think of those pallid, jade-faced painters of Tokyo who, through the medium of an art that is necessarily immobile, seek to convey the sense of swiftness and motion.  The sullen murmur of the bees shouldering their way through the long unmown grass, or circling with monotonous insistence round the dusty gilt horns of the straggling woodbine, seemed to make the stillness more oppressive.  The dim roar of London was like the bourdon note of a distant organ.

Sample output:

The studio was filled with the rich odour of roses, and when
the light summer wind stirred amidst the trees of the garden,
there came through the open door the heavy scent of the
lilac, or the more delicate perfume of the pink-flowering
thorn.

From the corner of the divan of Persian saddle-bags on which
he was lying, smoking, as was his custom, innumerable
cigarettes, Lord Henry Wotton could just catch the gleam of
the honey-sweet and honey-coloured blossoms of a laburnum,
whose tremulous branches seemed hardly able to bear the
burden of a beauty so flamelike as theirs; and now and then
the fantastic shadows of birds in flight flitted across the
long tussore-silk curtains that were stretched in front of
the huge window, producing a kind of momentary Japanese
effect, and making him think of those pallid, jade-faced
painters of Tokyo who, through the medium of an art that is
necessarily immobile, seek to convey the sense of swiftness
and motion.  The sullen murmur of the bees shouldering their
way through the long unmown grass, or circling with
monotonous insistence round the dusty gilt horns of the
straggling woodbine, seemed to make the stillness more
oppressive.  The dim roar of London was like the bourdon note
of a distant organ.

Sample input:_

27
We were seated at breakfast one morning, my wife and I, when the maid brought in a telegram. It was from Sherlock Holmes and ran in this way:

"Have you a couple of days to spare? Have just been wired for from the west of England in connection with Boscombe Valley tragedy. Shall be glad if you will come with me. Air and scenery perfect. Leave Paddington by the 11:15."

"What do you say, dear?" said my wife, looking across at me. "Will you go?"

"I really don't know what to say. I have a fairly long list at present."

"Oh, Anstruther would do your work for you. You have been looking a little pale lately. I think that the change would do you good, and you are always so interested in Mr. Sherlock Holmes' cases."

Sample output:

We were seated at
breakfast one morning, my
wife and I, when the maid
brought in a telegram. It
was from Sherlock Holmes
and ran in this way:

"Have you a couple of days
to spare? Have just been
wired for from the west of
England in connection with
Boscombe Valley tragedy.
Shall be glad if you will
come with me. Air and
scenery perfect. Leave
Paddington by the 11:15."

"What do you say, dear?"
said my wife, looking
across at me. "Will you
go?"

"I really don't know what
to say. I have a fairly
long list at present."

"Oh, Anstruther would do
your work for you. You
have been looking a little
pale lately. I think that
the change would do you
good, and you are always
so interested in Mr.
Sherlock Holmes' cases."

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl450.02262010/06/02 02:34:050B / 22B / 21B
2murky-satyr460.00602010/06/02 02:08:310B / 25B / 16B
3yvl440.00632010/06/16 00:11:180B / 24B / 16B

Perl _

RankUserSizeTimeDateStatistics
1ySas370.00312010/06/07 17:38:310B / 9B / 28B
2dcutter370.00302010/06/15 14:35:210B / 16B / 19B
3murky-satyr390.00322010/06/02 01:34:310B / 16B / 21B
4nai390.00342010/06/04 20:34:250B / 16B / 21B

Python _

RankUserSizeTimeDateStatistics
1recursive830.05062010/06/03 00:18:500B / 48B / 29B
2hallvabo920.12332010/06/02 06:05:530B / 60B / 24B
3hallvabo820.07622010/06/16 15:20:290B / 47B / 29B
4hallvabo (recursive)820.07192010/06/16 15:21:220B / 47B / 29B

PHP _

RankUserSizeTimeDateStatistics
1o-cn540.08152010/06/02 05:18:070B / 31B / 22B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1350.20992010/06/15 17:15:110B / 84B / 47B
2youz1350.33362010/06/15 17:27:270B / 73B / 55B
3quijote1640.18642010/06/01 19:52:500B / 95B / 53B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr835.20502010/06/01 23:26:420B / 39B / 42B

JavaScript _

RankUserSizeTimeDateStatistics
1nn820.00842010/06/03 10:45:170B / 37B / 44B
2murky-satyr830.00712010/06/03 10:26:300B / 37B / 45B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr750.08342010/06/03 08:41:320B / 40B / 26B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1120.00432010/08/24 15:48:270B / 64B / 39B

J _

RankUserSizeTimeDateStatistics
1pooq730.12172010/06/14 14:52:510B / ?B / ?B
2I., S.(pooq)620.13152011/05/11 07:12:070B / 33B / 27B
3I., S.640.11522011/05/11 07:16:400B / 11B / 52B
4I., S.(ad hoc)690.11582011/05/10 19:45:590B / 10B / 58B
5pooq720.15912010/07/05 12:07:210B / 43B / 25B

C _

RankUserSizeTimeDateStatistics
1nai900.00222010/06/11 14:33:050B / 48B / 42B
2nn1030.00162010/06/02 13:38:380B / 53B / 49B
3inaniwa1040.00172010/06/08 15:06:220B / 51B / 52B

C++ _

RankUserSizeTimeDateStatistics
1nn1290.00172010/06/03 19:45:510B / 68B / 59B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa940.01802010/06/02 20:30:580B / ?B / ?B
2rst761100.01742010/06/02 04:31:200B / 54B / 52B

AWK _

RankUserSizeTimeDateStatistics
1nn970.00262010/06/03 19:34:010B / 48B / 43B

Bash _

RankUserSizeTimeDateStatistics
1eban280.05562010/06/01 18:56:190B / 15B / 8B

Zsh _

RankUserSizeTimeDateStatistics
1zzo38290.05982010/06/05 23:16:350B / 16B / 9B

GolfScript _

RankUserSizeTimeDateStatistics
1nn390.22472010/06/03 23:56:290B / 7B / 30B

Vim _

RankUserSizeTimeDateStatistics
1nn(w/o !)260.10402010/06/02 01:12:113B / 15B / 4B
2nn270.12442010/06/01 18:13:091B / 13B / 8B
3eban280.10252010/06/03 13:42:194B / 13B / 7B
4pla310.10612010/06/01 21:50:502B / 15B / 11B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr320.14262010/06/02 02:08:460B / 12B / 16B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr765.99542010/06/14 11:04:530B / 39B / 35B
2nn786.15122010/06/07 10:20:370B / 37B / 38B
3nn736.19772010/06/15 23:16:470B / 35B / 36B

Language Ranking_

RankLangUserSizeScore
1Vimnn(w/o !)2610000
2Basheban289285
3Zshzzo38298965
4gorubymurky-satyr328125
5PerlySas377027
6GolfScriptnn396666
7Rubyyvl445909
8PHPo-cn544814
9JI., S.(pooq)624193
10Groovynn733561
11Tclmurky-satyr753466
12JavaScriptnn823170
13Pythonhallvabo (recursive)823170
14Clojuremurky-satyr833132
15Cnai902888
16Haskellnotogawa942765
17AWKnn972680
18BASIC*yuko*1122321
19C++nn1292015
20Common LISPkozima1351925

return to the top page