Disable Line wrap in Terminal

How do you disable line wrap in bash? As in
$ls -la
or
mysql> select * from db;
displaying exceedingly lengthy data. Or perhaps readline options to disable wrapping?
May be just a horizontal scroll bar in Terminal?

Thanks for responding. I believe that setting is for input not output. Plus it is on. I think terminal needs a horizontal scrool bar.
$ bind -v
set bind-tty-special-chars on
set blink-matching-paren on
set byte-oriented off
set completion-ignore-case off
set convert-meta off
set disable-completion off
set enable-keypad off
set expand-tilde off
set history-preserve-point off
set horizontal-scroll-mode on
set input-meta on
set mark-directories on
set mark-modified-lines off
set mark-symlinked-directories off
set match-hidden-files on
set meta-flag on
set output-meta on
set page-completions on
set prefer-visible-bell on
set print-completions-horizontally off
set show-all-if-ambiguous off
set show-all-if-unmodified off
set visible-stats off
set bell-style audible
set comment-begin #
set completion-query-items 100
set editing-mode emacs
set keymap emacs

Similar Messages

  • Terminal's line wrap turned off globally instead of per window?

    Hi, I've had a problem that's been bugging me since 10.6 came out.
    I have to log onto HP switches as part of my job, and their weird command line interface disables line wrap on the terminal window. Fair enough, they can do what they want, once I'm finished I just close the window.
    However, since 10.6 came along, when the HP sends the sequence to disable line wrap, it disables line wrap in all open windows. New windows opened after this are fine, but all windows open at the time (including to all the non-HP network equipment I have to manage) lose any text that goes past the end of the line, instead of wrapping. Note it's lost, it's not overwriting the last character on the line.
    This feels like a bug to me where something that's supposed to apply to a single window is applying to all. I'm getting frustrated having to close all my windows and re-log in to all my other sessions after I have to log into an HP switch.
    To head off any comments about terminal prompts (since that's what most of my searches turn up), I use tcsh with the very boring prompt "%m%# ". It's not that.

    Besides my previous iTerm suggestion in your original Snow Leopard forum post, you could try adding the following to your prompt
    set prompt="%{e[?7h%}%m%# " # enable auto wrap with each prompt
    This way each time you get your tcsh prompt, it will reset the autowrap mode.
    I tried this, and it seems to work.
    I got the escape codes from HP
    <http://h30097.www3.hp.com/docs/basedoc/DOCUMENTATION/V50A_HTML/MAN/MAN5/0036___.HTM>
    Well HP didn't actually write them, but rather written by Digital Equipment Corporation for Digital UNIX (formally OFS/1), but then it became Compaq Tru64 UNIX, and then finally HP Tru64 UNIX, where HP is successfully killing the product.

  • Terminal's line wrap turned off globally?

    Hi, I've had a problem that's been bugging me since 10.6 came out.
    I have to log onto HP switches as part of my job, and their weird command line interface disables line wrap on the terminal window. Fair enough, they can do what they want, once I'm finished I just close the window and start another.
    However, since 10.6 came along, when the HP sends the sequence to disable line wrap, it disables line wrap in all open windows. New windows opened after this are fine, but all windows open at the time (including to all the non-HP network equipment I have to manage) lose any text that goes past the end of the line, instead of wrapping.
    I'm getting sick of having to close all my windows and re-log in to all my other sessions after I have to log into an HP switch.
    To head off any comments about terminal prompts (since that's what most of my searches turn up), I use tcsh with the very boring prompt "%m%# ". It's not that.

    Terminal and general Unix oriented questions are best asked in the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>
    I do not know what is happening with Terminal, but you could try (even as an experiment) iTerm (free download)
    <http://iterm.sourceforge.net/>
    iTerm is my preferred terminal emulator. At work, I typically have 2 iTerm windows, and each window has about 8 to 10 tabbed sessions ssh'ed into at least 7 different systems (Macs, Linux, Solaris, AIX, to name a few). Lucky for me, my current emplorer has not made me work the HP-UX Yet!
    Message was edited by: BobHarris

  • Line wrapping - JTextPane

    Hi,
    Does anyone know how to disable line wrapping in a JTextPane?
    Thanks,
    Michael

    there 2 ways of achieving it.
    1. Instead of adding the editorpane to the JScrollPane, add the JEditorPane to a JPanel(BorderLayout->CENTER) and then the JPanel to the JScrollPane. Then you can avoid the said problem
    2. JEditorPane ta= new JEditorPane(){
    public boolean getScrollableTracksViewportWidth(){
    return false;
    use this to create ur JEditorpane.
    But the problem here is that your JEditorpane width is dynamic depending on ur text size.
    so when you add it to the JScrollPane you will not c it fitting exactly into the scrollpane width.
    hope it helps.

  • [SOLVED] vim status line invisible/wrapped in terminal unless I resize

    Hi all,
    Whenever I open a file in Vim within a terminal (urxvt, Terminator, xterm) the status line at the very bottom is either invisible or wrapped onto a new line (ie "bot" or "All" will span a line) until I manually resize the window by dragging an edge - this seems to fix the issue (and Vim continues to display correctly even if I continue resizing) .  I tried changing the window geometries (in .Xresources for urxvt, and in terminator via --geoemtry) without luck.  Changing fonts (type, size) doesn't help either.
    I'm running Openbox on a recent Retina MacBook Pro with nVidia drivers, with infinality-bundle installed.
    The same behavior occurs under Awesome, and I tried various Openbox themes, all with the same result.   So, perhaps its a bash or nVidia issue.
    gVim works perfectly though.
    Any thoughts?
    Thanks!
    Last edited by iamjerico (2014-03-26 19:54:12)

    The status line - the very bottom line - is either (1) below the visible portion of the terminal window - and remains so even if I page down repeatedly (urxvt) - or (2) is visible but the text appearing on it, like "bot" or "all" that are normally visible on the lower right corner, will wrap around (Terminator).  That is, I'll see "b" on the bottom right corner and then "ot" on the bottom left but a line lower.  In either case, if I manually resize the terminal window, it "catches up" and all appears correctly.
    Update: when running Vim without opening a file (just "vim" from the command line), in Terminator ALL of the visible text from the startup text is wrapped (ie "Vim is open source and freely distributable" wraps onto a second line).  In urvxt, that text appears normally but the status line is not visible.  In both cases, a window resizes corrects the display.
    Very strange.

  • How to disable TextEdit's automatic termination after closing last open document?

    Hi!
    I was wondering how to disable TextEdit's automatic termination after closing the last open document.
    It's so annoying!
    Thanks for everything!
    Chris.

    Quit TextEdit, launch the Terminal app in /Utilities, copy & paste this one-liner into the window that pops up, hit the return key, quit the Terminal app, and restart.
    defaults write com.apple.TextEdit NSDisableAutomaticTermination -bool yes
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.5), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • Line wrapping with s:TextInput /

    With the Beta 2 SDK, line wrapping was allowed for s:TextInput if they skin was modified to put the lineBreak="toFit" style on the textDisplay component.  This does not seem to work with the final release of the Flex 4 SDK as the text continues to flow past the right-most edge of the input box.
    Is there a work around available?

    @Greg Yantz,
    Why not just use a s:TextArea if you want multiline input? Word wrapping on s:TextInput isn't really supported, so I dont know how well it will work, but I came up with two workarounds (with the help of a coworker), which may help you get started:
    I think the main problem is that the partAdded() method in the TextInput.as class is clobbering whatever values you're setting in the skin:
        override protected function partAdded(partName:String, instance:Object):void
            super.partAdded(partName, instance);
            if (instance == textDisplay)
                textDisplay.multiline = false;
                // Single line for interactive input.  Multi-line text can be
                // set.
                textDisplay.setStyle('lineBreak', 'explicit');
                // TextInput should always be 1 line.
                textDisplay.heightInLines = 1;
    You can work around this by using the creationComplete event in the s:TextInput control to reset those values to whatever you want:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import flashx.textLayout.formats.LineBreak;
                protected function init():void {
                    ti.textDisplay.setStyle('lineBreak', LineBreak.TO_FIT);
                    ti.textDisplay.multiline = true;
            ]]>
        </fx:Script>
        <s:TextInput id="ti" creationComplete="init();" />
    </s:Application>
    Or you could probably move that logic to a custom skin and use the creationComplete event in the skin to set the lineBreak style and multiline property. Again, I only did a very quick test and it seemed to work, but your mileage may vary and since this is unsupported it may not work in future builds for the Flex SDK:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:TextInput id="ti" skinClass="CustomTISkin2" />
    </s:Application>
    And my custom skin, CustomTISkin2.mxml, is a copy of the default s:TextInput skin with a few minor tweaks:
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5" blendMode="normal"
        creationComplete="init();">
         <fx:Script>
            <![CDATA[
                import flashx.textLayout.formats.LineBreak;
                private function init():void {
                    textDisplay.multiline = true;
                    textDisplay.setStyle('lineBreak', LineBreak.TO_FIT);
            ]]>
        </fx:Script>
    Peter

  • JTextArea soft line wrap

    Hi,
    I'm using JTextArea in which the text is displayed and the WordWrap option is disabled.
    I want to get string, line by line, such that, i get the string only till the last displayed char on that line (i.e. without moving the horizontal scrollbar to right). The string outside the visible JTextArea towards right is to be considered on a new line just as the line wraps.
    In other words i have to do a soft line wrap on string within JTextArea.
    For that how do i get the string till the last displayed char on JTextArea line?
    Thanking you in advance,
    -Manish.

    I'm writing an Client - Server application(chat)So why do you need to the "br" tags? Just send the text over and let the user decide how wide they want the chat window to be. Some user might like tall and narrow windows. Other will like short and wide. Then the chat window will wrap or unwrap the text as required.
    Also, you can't control what computers each user is using. Different GUIs use different Fonts, which means the text may wrap at different places automatically anyway. So you should not be trying to format it. If you truly do need a new line, then the way to do this is by using the enter key.
    Also you approach of adding the "br" tag when the text wraps is wrong. What if the user then deletes some text from the first line? You will need to remove the tag. This is unnecessary work. So the cusomizing of the text by adding "br" tags should be done when you sent the text, not while the user is typing it.
    However, if you really want to proceed with this approach then I think you can use the Utilities. class. By using the getRowStart() and getRowEnd() methods you can iterate through the text and add "br" tags as required.

  • How to prevent automatic line wrapping in a JEditorPane

    I have added a JEditorPane inside a JScrollPane which is inturn is added inside a JPanel with a GridLayout.
    While JEditorPane is loaded with an HTML page or a html file is read into it with an HTMLDocument the longer lines are geting wrapped automatically to the next line when the display area of the parent component of the JPanel where the original JScrollPane is held (like the JFrame or JSplitPane etc.)
    It doesn't help even after seeing a preferredsize/maximumSize or minimumSize
    of the JEditorPane (b'cos it defaults to some other size which i'ven't set at all).
    The horizontal scrollbar apperas only the when the the JEditorPanes size is reduced lesser than its defult size which has been set (probably by the layout manager).
    I want to get rid of this behaviour of the JEditorPane such that horizontal Scollbar should apper as soon as the user reduce the size of the window displaying the above component hierarchy (parent container->JScrollPane->JEditorPane) and no line wrapping occurs.
    Note : 1. JEditorPane doesn'y have linewrapping API like JTextArea
    2. Its default and automatic linewrapping behaviour is conforming
    with word line wrapping where lines are broken at the end of a
    word which can be fully accomodated.

    I have added a JEditorPane inside a JScrollPane which is inturn is added inside a JPanel with a GridLayout.
    While JEditorPane is loaded with an HTML page or a html file is read into it with an HTMLDocument the longer lines are geting wrapped automatically to the next line when the display area of the parent component of the JPanel where the original JScrollPane is held (like the JFrame or JSplitPane etc.)
    It doesn't help even after seeing a preferredsize/maximumSize or minimumSize
    of the JEditorPane (b'cos it defaults to some other size which i'ven't set at all).
    The horizontal scrollbar apperas only the when the the JEditorPanes size is reduced lesser than its defult size which has been set (probably by the layout manager).
    I want to get rid of this behaviour of the JEditorPane such that horizontal Scollbar should apper as soon as the user reduce the size of the window displaying the above component hierarchy (parent container->JScrollPane->JEditorPane) and no line wrapping occurs.
    Note : 1. JEditorPane doesn'y have linewrapping API like JTextArea
    2. Its default and automatic linewrapping behaviour is conforming
    with word line wrapping where lines are broken at the end of a
    word which can be fully accomodated.

  • Problems with JTextPane line wrapping

    Hi to all.
    I'm using a code like this to make editable a figure that I paint with Java 2D. This JTextPane don't has a static size and for that, the text in it cannot be seen affected by the natural line wrap of the JTextPane component. The problem is that I have to set a maximun size for the JTextPane and I want to use the line wrap only when the width of the JTextPane be the maximun width. How can I do this?
    public class ExampleFrame extends JFrame {
        ExamplePane _panel;
        public ExampleFrame() {
            this.setSize(600, 600);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            _panel = new ExamplePane();
            getContentPane().add(_panel);
            this.setVisible(true);
        public static void main(String[] args) {
            ExampleFrame example = new ExampleFrame();
        public class ExamplePane extends JPanel {
            public ExamplePane() {
                this.setBackground(Color.RED);
                this.setLayout(null);
                this.add(new ExampleText());
        public class ExampleText extends JTextPane implements ComponentListener, DocumentListener,
                KeyListener {
            public ExampleText() {
                StyledDocument doc = this.getStyledDocument();
                MutableAttributeSet standard = new SimpleAttributeSet();
                StyleConstants.setAlignment(standard, StyleConstants.ALIGN_RIGHT);
                doc.setParagraphAttributes(0, 0, standard, true);
                this.setText("Example");
                this.setLocation(300, 300);
                this.setSize(getPreferredSize());
                this.addComponentListener(this);
                getDocument().addDocumentListener(this);
                this.addKeyListener(this);
            public void componentResized(ComponentEvent e) {
            public void componentMoved(ComponentEvent e) {
            public void componentShown(ComponentEvent e) {
            public void componentHidden(ComponentEvent e) {
            public void insertUpdate(DocumentEvent e) {
                Dimension d = getPreferredSize();
                d.width += 10;
                setSize(d);
            public void removeUpdate(DocumentEvent e) {
            public void changedUpdate(DocumentEvent e) {
            public void keyTyped(KeyEvent e) {
            public void keyPressed(KeyEvent e) {
            public void keyReleased(KeyEvent e) {
    }Thanks for read.

    I'm working hard about that and I can't find the perfect implementation of this. This is exactly what I want to do:
    1. I have a Ellipse2D element painted into a JPanel.
    2. This ellipse is painted like a circle.
    3. Into the circle there's a text area, that user use to name the cicle.
    4. The text area is a JTextPane.
    5. When the user insert a text area, it can increase it size, but it can't be bigger than the circle that it contains.
    6. There is a maximun and a minimun size for the circle.
    7. When the user write into de JTextPane, it grows until arriving at the limit.
    8. When the JTextPane has the width size limit, if the user writes more text into it, the JTextPane write it into another line.
    9. The size of the JTextPane has to be the optimun size, it cannot have empty rows or empty lines.
    This code does all this except 9, cause if the user remove some text of the text area, the form of the JTextPane changes to a incorrect size.
    public class ExampleFrame extends JFrame {
        ExamplePane _panel;
        public ExampleFrame() {
            this.setSize(600, 600);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            _panel = new ExamplePane();
            getContentPane().add(_panel);
            this.setVisible(true);
        public static void main(String[] args) {
            ExampleFrame example = new ExampleFrame();
        public class ExamplePane extends JPanel {
            public ExamplePane() {
                this.setBackground(Color.RED);
                this.setLayout(null);
                this.add(new ExampleText());
        public class ExampleText extends JTextPane implements ComponentListener, DocumentListener,
                KeyListener {
            public ExampleText() {
                StyledDocument doc = this.getStyledDocument();
                MutableAttributeSet standard = new SimpleAttributeSet();
                StyleConstants.setAlignment(standard, StyleConstants.ALIGN_CENTER);
                doc.setParagraphAttributes(0, 0, standard, true);
                this.setText("Example");
                this.setLocation(300, 300);
                this.setSize(getPreferredSize());
                //If it has the maximun width and the maximun height, the user cannot
                //write into the JTextPane
                /*AbstractDocument abstractDoc;
                if (doc instanceof AbstractDocument) {
                abstractDoc = (AbstractDocument) doc;
                abstractDoc.setDocumentFilter(new DocumentSizeFilter(this, 15));
                this.addComponentListener(this);
                getDocument().addDocumentListener(this);
                this.addKeyListener(this);
            public void componentResized(ComponentEvent e) {
            public void componentMoved(ComponentEvent e) {
            public void componentShown(ComponentEvent e) {
            public void componentHidden(ComponentEvent e) {
            public void insertUpdate(DocumentEvent e) {
                Runnable doRun = new Runnable() {
                    public void run() {
                        int MAX_WIDTH = 200;
                        Dimension size = getSize();
                        Dimension preferred = getPreferredSize();
                        if (size.width < MAX_WIDTH) {
                            size.width += 10;
                        } else {
                            size.height = preferred.height;
                        setSize(size);
                SwingUtilities.invokeLater(doRun);
            public void removeUpdate(DocumentEvent e) {
                this.setSize(this.getPreferredSize());
            public void changedUpdate(DocumentEvent e) {
            public void keyTyped(KeyEvent e) {
            public void keyPressed(KeyEvent e) {
            public void keyReleased(KeyEvent e) {
    }I know that the problem is into the removeUpdate method, but I have to set to the JTextPane, allways the optimun size, how can I do this?
    Thanks to all.
    Edited by: Daniel.GB on 06-jun-2008 18:32

  • Center text in a text component with line wrapping

    I need to display dynamic text in a text component. I need line wrapping (on work boundaries) and also need horizontal and vertical center alignment.
    How do I do this? I saw a previous post on aligning text in a JTextArea that said to use a JTextPane but I don't see in JTextPane how to do word wrapping.
    Thanks,
    John

    //  File:          SystemInfoWindow.java.java
    //  Classes:     SystemInfoWindow
    //  Package:     utilities.msglib
    //  Purpose:     Implement the SystemInfoWindow class.
    //     Author:          JJB 
    //     Revision History:
    //     Date            By   Rel#  Description of change
    //     =============  ===  ====  ===============================================
    //     Jul 3, 2006   JJB  1.00  Original version
    //  Public Types / Classes          Type Description
    //  ========================     =============================================
    //     SystemInfoWindow
    package utilities.msglib;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JTextPane;
    import javax.swing.SwingUtilities;
    * TODO Enter description
    class SystemInfoWindow extends JDialog {
          * @param args
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        Test thisClass = new Test();
                        thisClass.setVisible(true);
                        SystemInfoWindow window = new SystemInfoWindow(thisClass);
                        window.setMessage("System shutdown in progress ... lot sof atatarte athis tis a sa logoint of tesxt it keeps going and going and going thsoreoiat afsjkjslakjs fshafhdskrjlkjsdfj");
                        window.setVisible(true);
         //     ------------------------  Inner Classes ---------------------
         static class Test extends JFrame {
              private JPanel jContentPane = null;
               * This is the default constructor
              public Test() {
                   super();
                   initialize();
               * This method initializes this
               * @return void
              private void initialize() {
                   this.setSize(300, 200);
                   this.setContentPane(getJContentPane());
                   this.setTitle("JFrame");
               * This method initializes jContentPane
               * @return javax.swing.JPanel
              private JPanel getJContentPane() {
                   if (jContentPane == null) {
                        jContentPane = new JPanel();
                        jContentPane.setLayout(new BorderLayout());
                   return jContentPane;
         //     ------------------------  Static Fields ---------------------
         private static final long serialVersionUID = -8602533190114692294L;
         //     ------------------------  Static Methods --------------------
         //     ------------------------  Public Fields ---------------------
         //     ------------------------  Non-Public Fields -----------------
         private JPanel jContentPane = null;
         private JTextPane textField = null;
         public SystemInfoWindow(JFrame frame) {
              super(frame);
              initialize();
              //setUndecorated(true);
              setLocationRelativeTo(frame);
              pack();
         //     ------------------------  Interface Implementations ---------
         //     ------------------------  Public Methods --------------------
         public void setMessage(String text){
              textField.setText(text);
              adjustSize();
         //     ------------------------  Non-Public Methods ----------------
         private void adjustSize(){
              Dimension oldSize = textField.getPreferredSize();
              textField.setPreferredSize(new Dimension(
                        oldSize.width, oldSize.height + 30));
              pack();
         //     ------------------------  Generated Code --------------------
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setModal(true);
              this.setContentPane(getJContentPane());
              this.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowOpened(java.awt.event.WindowEvent e) {
                        //setLocationRelativeTo(MsgLibGlobals.parent);
                        pack();
          * This method initializes jContentPane
          * @return javax.swing.JPanel
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.setMaximumSize(new java.awt.Dimension(50,2147483647));
                   jContentPane.add(getTextField(), java.awt.BorderLayout.CENTER);
              return jContentPane;
          * This method initializes textField     
          * @return javax.swing.JTextPane     
         private JTextPane getTextField() {
              if (textField == null) {
                   textField = new JTextPane();
                   textField.setEditable(false);
                   textField.setMaximumSize(new java.awt.Dimension(20,2147483647));
              return textField;
    }Message was edited by:
    BaltimoreJohn

  • Line wrap in JTextPane

    I didn't see a setLineWrap(boolean) method in JTextPane (as you can tell from my previous posts I'm having trouble going from a JTextArea to a text component that can format text). How would I force it to line wrap like a JTextArea would if you called
    tp.setLineWrap(true);
    tp.setWrapStyleWord(true); ?
    I've set the JTextPane in a JScrollPane, so I'm worried it will not wrap.
    thanks for the info.

    I just finished some testing and it seems the the line wrapping is set to the way I wanted by default, ie by just like I had called the above methods on a JTextField
    thanks

  • How to add new line wrapping rule?

    Hi all,
    I have a question about line wrapping condition of Java editor of JDeveloper.
    JDev has some predefined rules for it and I can change them from preference.
    But can I add a new rule?
    I'd like to place conditional operators such as "&&" or "||" at head of line.
    For example, as below.
    if (values[0].length() > 2
    && values[1].length() == 3
    || values[2].length() < 10
    && values[3].length() == 0) {
    JDev doesn't seem to have the predefined rule about conditional operators.
    So I'd like to know if I can add new one.
    My Jdeveloper is 11.1.1.6.0.
    Thanks,
    Atsushi

    Atsushi,
    I don't think you can add a new rule there.
    However, how about setting Line Wrapping->Binary Operators and Assignments to Always? Your code would then look like
           if (values[0].length() >
                2 &&
                values [1].length() ==
                3 ||
                values [2].length() <
                10 &&
                values [3].length() ==
                0 ) {
            }-Arun

  • Line wrapping in Java??

    Hi,
    Can anyone tell me if there is a class to handle line wrapping in Java?
    I'm working on a Java Mail application that deals with fairly lengthy email message bodies. The problem is in the actual email, the message body appears in a lengthy horizontal single line which is rather inconvenient to read.
    I'd like to break the message body into convenient 80 character lines that takes word boundries into account so that there are no broken words at the end of a line.
    Thanks,
    Veena

    Well the easiest way would be to put line breaks when you want them.
    "\n" is the line break character.
    So String("aaaaa\naaaaa");
    Should appear as
    aaaaa
    aaaaa

  • HTML lines wrap around in the HTML report output

    I seem to have a problem with lines wrapping around in HTML format. If the report is ran using the report builder the output will fit in every line without wrapping the information.
    While if I run the same report -- to present the info using a browser -- using JSP in HTML format, the same lines will wrap around the info in two lines.
    Here is how I send this document to the server :
    pwrmpos_n: report=pwrmpos.rep destype=cache desformat=html server=rep60_wforms2 %*
    Any help will be appreciated

    Hello Hernando,
    I am a little confused, the command that you describe is only for paper layout...
    Anyway, let's try to help you:
    - on your paper layout you specified a width for each column (when you resize it in the Paper Design window). When you run the paper layout with HTML (ot HTMLCSS) as format the width is present in the <TD> tag.
    - for the JSP, by default the HTML does not contains any size for the table and cell so the browser size the table to fit in the screen.
    If you do not want any wrapping in the JSP just modify the HTML tags to specify a width, or wrap for the TD tag.
    Regards
    Tugdual

Maybe you are looking for