Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Supressing page breaks in forms

by yaconsult (Acolyte)
on May 29, 2009 at 20:11 UTC ( [id://766942]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Supressing page breaks in forms
in thread Supressing page breaks in format/write output

It is NOT a web page. It is a simple text file. It gets emailed to people via a script.

Coincidentally, there is a web page somewhere that, when a link is clicked on it, displays the contents of this text file in the browser.

The only problem is that the text gets broken in "pages" when there are many lines and I don't want it to.

...
2009-03-15 04 143 oconnorn
^L Date Hour Requests UID
-----------------------------------------------
2009-03-15 04 121 rdreyer
...

That is what happens every so many lines - a ^L and a reprinting of the header. I just want those breaks to disappear.

Replies are listed 'Best First'.
Re^5: Supressing page breaks in forms
by ww (Archbishop) on May 29, 2009 at 22:42 UTC

    You've changed your spec: in your original post, you said, "(t)he form will be viewed using a browser...."

    Certainly it's possible to view a plain text file with a browser, by any one of several techniques, but IMO, if something is "viewed using a browser," it's a web page (or, to be a bit more precise, a page or constituent thereof). Further, within the context of "viewed in a browser," a form is, as noted above, a very specific html construct with a very specific purpose unrelated to what you didn't tell us until prodded by replies suggesting you clarify your intent.

    Given your new spec, you may wish to know that Control-L (represented by caret-L in many circumstances) is the (nominally) "non-printing" ASCII and ANSI character for a "Form Feed" AKA "page eject, 0x0c, 12 decimal. Update: see http://www.robelle.com/smugbook/ascii.html/update

    So the problem becomes "how can you remove each instance of 0x0c (and, I infer -- perhaps incorrectly -- the "Date Hour Requests UID" elements)?" (Your spec for "header" is a bit less than precise.) But either case is readily dealt with using a very basic script (which, at this stage, is left as an exercise for the student) or --indeed -- with a minimally competent text editor.

    Suggestion: when you update a post, please tag it prominently -- for example, Update....blah, blah, blah /update. You do acknowledge your addition to the OP, but that acknowledgment is less than prominent.

    <Update: You appear to have also changed your title, so it no longer matches the titles of the replies. That's also confusing, and the change is still less than clear; s/format\/write output/text/ would have been better. /update>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://766942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found