Word wrap last space to be blank

hi prestnl in a notepad file output of report the word wrap is being done at positon 225 as the last field county is of three char but the valurs indatabase is two so the word wrp is done on position 225
we need to display a blank space after "MY' in below eg ie the word wrap for notepad file shold display one blank space after MY
pls sugges how to do
                                                     11900      Penang                                   MY

hi,
use like this.
SHIFT ld_field LEFT DELETING LEADING SPACE.
Regards
Reshma

Similar Messages

  • [Solved]Conky and word wrapping - Is there a way?

    So I have a very limited area to work with, something like 176x360 (+/- a few pixels), and I want the ability to show an RSS feed. Well, the feed works of course, but due to the limited width, I'm in great need of word wrapping, and for that problem I have found no solution and going on for 2-3 hours straight, my head hurts
    Anyway, here's my .conkyrc, not that it's needed of course.
    # ~/.conkyrc
    double_buffer yes
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=8
    xftalpha 0.8
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_colour hotpink
    own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
    minimum_size 176 360
    maximum_size 176 360
    maximum_width 176
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color green
    default_shade_color green
    default_outline_color green
    alignment bottom_right
    gap_x 16
    gap_y 16
    no_buffers yes
    uppercase no
    TEXT
    $alignc${nodename}
    $alignc${sysname} ${kernel}
    $hr
    CPU:$alignr$cpu% ${cpubar 10,106}
    RAM:$alignr$memperc% ${membar 10,106}
    HDD:$alignr${fs_used_perc /}% ${fs_bar 10,106 /}
    BAT:$alignr${battery_percent}% ${battery_bar 10,106}
    $hr
    Download: Upload:
    eth0 ${downspeed eth0} $alignr${upspeed eth0}
    wlan0 ${downspeed wlan0} $alignr${upspeed wlan0}
    $hr
    ${alignc}ARCH NEWS
    ${rss http://www.archlinux.org/feeds/news/ 1 item_titles 10 }
    I know this looks confusing and probably is full of critical error, but that simple because I'm a conky noob. I basically just downloaded a profile I liked and completely changed it over the course of a few hours.
    Anyway, I'm rambling again, but if you've got any idea's, please do let me know.
    Best regards.
    Last edited by zacariaz (2012-08-27 17:19:35)

    Okay, so I've found sort of a solution to part of the problem, so what I have so far look like this:
    wget -quiet -O - archlinux.org/feeds/news/ | fmt -w 25 -g 25
    It works as long as there are no words longer than 25 character, which I should think is rare, even including package names and such.
    However there's still the issue parsing the xml so I get only what I want:
    <item><title>$content</title><link>
    This may be solved using some sort of terminal rss parser, but I would rather prefer not to.
    Then there's the issue with reloading.
    My current conky is set to reload every second, but of course one can't just pull the feed every second and I'm not convinced that conky has any built in solution for that problem. Of course I can always start a cronjob and save it all to a file, but portability would be nice.
    anyway, I'll return later.

  • Word wrapping incorrect inside JTextPane on MAC 0.5/10.4 and Linux OS

    Hello java-dev team,
    In my application, I am using JTextPane as a text editor to create RTF text. The problem I observed with the JTextPane on MAC OS and Linux OS flavors (I tested on Ubuntu 8.04) is: whenever I am changing any of the text property (font color, font name, font style like bold, italic or underline) and then enter the characters without providing space, the whole word gets wrapped to the next line from the point where exactly the property change starts i.e. the new formatted text is jumped to the next line from the starting point of formatting.
    My requirement is, as I am not adding any space character while changing the property, the characters should be entered in the sequence and should come to new line as per normal word-wrap rule.
    Can anybody help me out in this regards with some solution as it’s a very urgent requirement?
    Below I am also providing the sample code to check the behavior. There is no dynamic facility to change the property in the below code but I am providing the text with multiple formatting settings through code itself. To reproduce the above issue, just type the characters using keyboard in between characters with changed text properties and you can see the whole word jumping to new line.
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.text.MutableAttributeSet;
    import javax.swing.text.SimpleAttributeSet;
    import javax.swing.text.StyleConstants;
    import javax.swing.text.StyledDocument;
    import javax.swing.text.StyledEditorKit;
    public class TestWrapping {
         JScrollPane scroll;
         JTextPane edit;
         public TestWrapping()  throws Exception {
              final JFrame frame=new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              edit=new JTextPane()
                   public void setSize(Dimension d)
                        if (d.width < getParent().getSize().width)
                             d.width = getParent().getSize().width;
                        super.setSize(d);
                   public boolean getScrollableTracksViewportWidth()
                        return false;
              edit.setPreferredSize(new Dimension(150,150));
              edit.setSize(150,150);
              edit.setEditorKit(new StyledEditorKit());
              scroll=new JScrollPane(edit);
              edit.getDocument().insertString(0,"11111111111111222222222222222222222222222222222222222",null);
              MutableAttributeSet attrs=new SimpleAttributeSet();
              StyleConstants.setBold(attrs,true);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(30,5,attrs,false);
              StyleConstants.setUnderline(attrs,true);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(35,5,attrs,false);
              StyleConstants.setFontSize(attrs,25);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(40,5,attrs,false);
              frame.getContentPane().add(scroll);
              frame.setBounds(0,0,150,150);
              frame.show();
         public static void main(String[] args) throws Exception {
              new TestWrapping();
    }The same functionality works fine on Windows XP and problem is observed on MAC OS 10.4/10.5, Ubuntu 8.04. I am using jdk1.5 on both the platforms. I tested using jdk 6.0 on Ubuntu 8.04, and the problem is easily reproducible. I placed a query in the respective OS forums also but did not receive any replies. I also searched the sun’s bug database, but could not find any bug addressing the mentioned problem correctly. I also logged issue at bugs.sun.com and was assigned internal review ID of 1480019 for this problem.
    If you need any additional information, please let me know.
    Thanks in advance.
    Regards,
    VPKVL

    VPKVL wrote:
    Hi All,
    Just want to update that when I checked this issue with JDK1.6 on Ubuntu 8.04, I am unable to reproduce the issue. Everything works as expected. But problem continues on MAC 10.5. So can anybody help me out in coming out of this issue on MAC 10.5.
    Thanks in advance.The only thing I can suggest is that you open a bug (radar) with apple ( developer.apple.com ), and then wait at least 12 months for Apple to get around to fixing it :s

  • Word Wrap

    Hi Guys
    I neec to use word wrap in JTable cells but can't figure-out how to do it; can any of you help me?
    Many thanks
    Patrick

    Many thanks for your replies.
    The JTextArea works fine but the table rows do not resize when the columns are resized so we end-up with the text being displayed on a single line and a lot of white-space below. How can I get the table rows to resize to the height og the tallest cell?
    Many thanks for your help.

  • Word Wrap in htmldb

    Can anyone tell me how to word-wrap in the values in a particular field of a table in htmldb? The values of a certain field are very long and hence the table is unnecesarily occupying lot of space..........thus, it would be helpful if word-wrapping was possible.
    Thanks in advance.

    how about using the following function to wrap the data in a column?
    I tested it in HTML DB and it worked fine.
    -- convert P_DATA into wrapped words. Words are delimited by <br> so that
    --  it can be displayed in HTML format
    --  P_N is number of characters
    FUNCTION HTML_WRAP( P_DATA IN VARCHAR2, P_N NUMBER DEFAULT 2) RETURN VARCHAR2
    IS
    TYPE T_DATA_CHARS IS TABLE OF VARCHAR2(1) INDEX BY BINARY_INTEGER;
    V_DATA_CHARS T_DATA_CHARS ;
    N NUMBER :=1;
    V_OUTPUT VARCHAR2(4000);
    BEGIN
    IF LENGTH(P_DATA) > P_N THEN
      -- populate Data in the array
      FOR I IN 1..LENGTH(P_DATA) LOOP
       V_DATA_CHARS(I) := SUBSTR(P_DATA,I,1);
      END LOOP;
      -- process the string
      FOR I IN 1..LENGTH(P_DATA) LOOP
       IF N <= P_N THEN   
         N := N + 1;
          V_OUTPUT := V_OUTPUT || V_DATA_CHARS(I);
       ELSE
         IF V_DATA_CHARS(I) = ' ' THEN
           V_OUTPUT := V_OUTPUT || '&lt;br&gt;';
           N := 1;
          ELSE
           N := N + 1;
           V_OUTPUT := V_OUTPUT || V_DATA_CHARS(I);
          END IF;    
       END IF; -- N <= P_N THEN   
      END LOOP;
      RETURN V_OUTPUT;
    ELSE
      RETURN P_DATA;
    END IF;
    SQL> SELECT BARAKAU.HTML_WRAP('WELCOME TO MY WORLD MY DEAR',5)
      2  FROM DUAL ;
    BARAKAU.HTML_WRAP('WELCOMETOMYWORLDMYDEAR',5)
    WELCOME&lt;br&gt;TO MY&lt;br&gt;WORLD&lt;br&gt;MY DEAR

  • Word wrap in nano does not work.

    Hello, I am trying to word wrap in nano the way it does in notepad and gedit (new line once you reach the edge of the screen/window). However, when I try nano -w rick.sh it give me the help screen and I see that -w is not an option. When I use set nowrap in the ~/.nanorc it says nowrap isn't recongized, also, -r <y> fails to work as well. What should I do?
    Last edited by fawx (2008-10-15 01:34:45)

    The reason might be the configure-parameter "--disable-wrapping" in nano's PKGBUILD. I would try this: get the PKGBUILD, remove the parameter, run makepkg. If makepkg finishes successfully, remove the nano-packages installed from repository and replace with the new created package.

  • Word wrap by delimiter in Report

    Hi,
    How Can I have word wrap in report based on delimiter in the column value
    For eg:
    My column value in country like AU:NZ , US:UK:CA
    I want the values to wrapped by delimiter ":" , so that ANZ and NZ comes in two line
    I tried REPLACE(country, ':' ,chr(10) ) , but the result is coming as single line
    Regards,
    Benz

    HTML treats all white space (spaces, tabs, newlines etc) as a single space.
    One solution would be to use the &lt;br /&gt; line break element:
    replace(country, ':', '<br />')A better one is to give the list of countries some semantics by marking it up as, well, a list:
    '<ul><li>' || replace(country, ':', '</li><li>') || '</li></ul>'

  • Word Wrap Lost When Switching Between XML and Author Views

    I compose DITA topics in the XML view with the word wrap option selected. If I switch to the Author view to check something and then return to the XML view, my nicely formatted XML view with all the happy element-nesting tabs goes away. I wind up with an ugly chunk of flush-left code and text that's difficult to read. Is there a reason why FM can't remember the tabs and word wrap when I return to the XML view?
    I'm relatively new to using FM's structured side for DITA, so perhaps I'm missing the obvious solution to this problem. If you know the answer, I'd appreciate if you'd clue me in.
    Thanks!

    Sarah,
    When you switch from XML to Author (or WYSIWYG) view, FM does not "remember" the XML document at all. Instead, internally it creates a structured FM document with the same element structure (possibly modified by the underlying XML application). When you switch back to XML view, it creates a new XML document from the current element structure, thereby preserving any changes you made in Author View. FM is very conservative about writing white space to XML in order to avoid inserting unwanted significant space.
    If you do all your editing in XML View and want to inspect the formatted version of the document without making changes to white space, always make a copy of the XML document (with File > Save As) and use the copy in Author View.
    --Lynne

  • Word wrap - add return within cell

    I have the need of putting word(s) on definitive lines within a cell. The particular case I am working with at the moment is a cemetery listing that has additional information particularly multiple spouses. I want each spouse's name to appear on a different line within that cell which Xcel does by using either ctl/enter or option/enter rather than putting a number of spaces in a wrapped cell so the next name would shift to the next line. Does Numbers have something similar?
    Tks

    Found another neat feature that also works with word wrap. Use Inspector to Merge two or more cells, I happen to have a long text in the first cell of three cell I wanted to use. Follow that by adding Word Wrap while still in Inspector. Low and Behold, the text that far exceeded the one cell now uses three cell for display and if the data then exceeds that amount of space it wraps as if the three cell are a single cell. It just so happened that the data I mentioned above needed three lines. Also, if you want specific parts of the data to be on specific lines within the unified cell, both line break functions previously mentioned will force the next part of the data to go to the next line ad infintum(??) or until the combined cell space/character limit is reached.

  • Word wrap problems in 36.0

    When entering text into a web form the text no longer "wraps" at the end of the box. The first part of the text runs off the left side. It is working fine in THIS text entry box but is now a problem on some other sites.
    See: http://www.thedirectoryclassifieds.com. Start placing a listing and then start entering text into the description box. Once you reach the end of the line the text does not wrap, just runs off the left side as typing continues. After this testing, just exit (back out) without continuing placing the listing.
    When encountering this problem I did a test on another computer that had 35.0.1 and word wrapping worked fine. Then I upgraded to 36.0 on that computer and now the problem is there too.
    So this definitely means a problem with 36.0 as it wasn't there in earlier versions.

    That particular form control has:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre;"''' class="editor field">&lt;/textarea>
    For the first time in Firefox 36, the white-space property is being honored for textarea controls. So there's your trouble: "pre" means Firefox should emulate the preformatted tag, which requires manual line breaks.
    It would be great if you can convince the site to change this to:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre-wrap;"''' class="editor field"></textarea>
    which is supported by all modern browsers (per the compatibility table here: [https://developer.mozilla.org/docs/Web/CSS/white-space#Browser_compatibility]).
    But that likely will take some time, so what is the best short-term workaround? I need to think about that a bit.
    To manually hack this form control, you can right-click it and choose Inspect Element (Q). This should open the web console to the Inspector in the lower part of the tab. Firefox should highlight the HTML tag I listed first above, and on the right, show the style rules for it. Under "This Element" you can uncheck the box for that rule to have the textarea styled using default rules. But you would need to do this after each time you load the page, which is a hassle.

  • Dynamically word wrap in a JLabel

    I have several JLabels in a complex layout that has a JSplitter and is in a resizeable window.
    I would like it if there isn't enough room for the text of the JLabel to fit on one line, but there is enough vertical room (there almost always is), for the JLabel to automatically word wrap, and become 2 or three line, as needed. (There are usually only 2 or three words in these JLabels.
    I haven't found a way to do this. I know about putting HTML in the JLabel lets you put <BR>s in, but I would like the JLabel to be only one line if possible, going to two line if there isn't enough room to fit all the text on one line.
    I searched this forum, and found a suggestion to use a JTextArea made up to look like a JLabel ( http://forum.java.sun.com/thread.jsp?forum=57&thread=399180 second reply from bottom ), but this has it's own problems. The JTextAreas, try to take up as much vertical space as possible instead of only as much space a necessary (as a JLable does) in the layout that I'm using.
    Is there any way of doing this?

    JLabel label = new JLabel();
    label.setLayout new BorderLayout() ;
    JTextPane pane = new JTextPane();
    pane.setBackground(label.getBackground());
    // or try making it opaque
    pane.setText("long text here");
    label.add(pane,BorderLayout.CENTER);The above still has the problem of wanting its preferred size to be calculated from the text layed out in one line. I was digged around in my Java2D folder and found some old code I wrote, based on something by J. Knudsen:
    import java.awt.*;
    import java.awt.font.*;
    import java.text.*;
    import javax.swing.*;
    public class JMultilineLabel extends JComponent {
        private String text;
        private Insets margin = new Insets(5,5,5,5);
        private int maxWidth = Integer.MAX_VALUE;
        private boolean justify;
        private final FontRenderContext frc = new FontRenderContext(null, false, false);
        private void morph() {
            revalidate();
            repaint();
        public String getText() {
            return text;
        public void setText(String text) {
            String old = this.text;
            this.text = text;
            firePropertyChange("text", old, this.text);
            if ((old == null) ? text!=null : !old.equals(text))
                morph();
        public int getMaxWidth() {
            return maxWidth;
        public void setMaxWidth(int maxWidth) {
            if (maxWidth <= 0)
                throw new IllegalArgumentException();
            int old = this.maxWidth;
            this.maxWidth = maxWidth;
            firePropertyChange("maxWidth", old, this.maxWidth);
            if (old !=  this.maxWidth)
                morph();
        public boolean isJustified() {
            return justify;
        public void setJustified(boolean justify) {
            boolean old = this.justify;
            this.justify = justify;
            firePropertyChange("justified", old, this.justify);
            if (old != this.justify)
                repaint();
        public Dimension getPreferredSize() {
            return paintOrGetSize(null, getMaxWidth());
        public Dimension getMinimumSize() {
            return getPreferredSize();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            paintOrGetSize((Graphics2D)g, getWidth());
        private Dimension paintOrGetSize(Graphics2D g, int width) {
            Insets insets = getInsets();
            width -= insets.left + insets.right + margin.left + margin.right;
            float w = insets.left + insets.right + margin.left + margin.right;
            float x = insets.left + margin.left, y=insets.top + margin.top;
            if (width > 0 && text != null && text.length() > 0) {
                AttributedString as = new AttributedString(getText());
                as.addAttribute(TextAttribute.FONT, getFont());
                AttributedCharacterIterator aci = as.getIterator();
                LineBreakMeasurer lbm = new LineBreakMeasurer(aci, frc);
                float max = 0;
                while (lbm.getPosition() < aci.getEndIndex()) {
                    TextLayout textLayout = lbm.nextLayout(width);
                    if (g != null && isJustified() && textLayout.getVisibleAdvance() > 0.80 * width)
                        textLayout = textLayout.getJustifiedLayout(width);
                    if (g != null)
                        textLayout.draw(g, x, y + textLayout.getAscent());
                    y += textLayout.getDescent() + textLayout.getLeading() + textLayout.getAscent();
                    max = Math.max(max, textLayout.getVisibleAdvance());
                w += max;
            return new Dimension((int)Math.ceil(w), (int)Math.ceil(y) + insets.bottom + margin.bottom);

  • Word wrap works only selectively

    Hi
    I'm experiencing the following effect in Discoverer Plus (10.1.2.54.25).:
    Situation
    Crosstab worksheet with several dimensions on the side. All dimensions have word warp activated.
    Problem
    Word wrap works only for the dimension that is the furthest to the right. If there is no wrap for that dimension (e. g. because the text is short) there is no wrap for the other dimensions either so text might be hidden. Only if the rightmost dimension wraps the others do so, too.
    With several dimensions in the worksheet and text not to be hidden there is not much space left for the data.
    Is this a bug or am I expecting to much?
    Franziska

    Obviously there is a bug files in metalink: Bug No 6608110

  • I want to put several images on one sheet.  In other words, I want to open a blank document and move photos on to it.  Is this possible with Elements, and if so, how do I do it?

    I want to put several photos on one sheet.  In other words, I want to open a blank document and move several photos on to it.  Is it possible to do this?  If so, how?
    Thanks, Leslie

    lesliew13734700 wrote:
    OK, another question.  I opened a new blank file and the picture I want to move is in the Photo Bin.  That image is 2 in. X 3 in.  But, when I move it onto the blank image, which is 8X10, it fills up the entire space.  I can't figure out how to put it in the new image in the correct size relationship. 
    Open the picture file, go to Image>resize>image size. Read what the resolution is in px/in, write it down, do nothing else here at this time
    Go to File>new>blank file, Enter the dimensions , resolution the same value that you wrote down in step #1, background color to suit, ok it.
    Go back to the picture file, go to Select>all, go to Edit>copy to put it on the clipboard
    Go back to the blank file, go to Edit>paste
    Get the move tool out of the toolbox, position the picture, and resize with the corner handles of the bounding box, if necessary..
    Note: For printing, the rule of thumb is that the resolution be in the 240-300px/in range, although I have had good results below this value. For web work, 72 px/in is ok.

  • Microsoft Word 2008 and Spaces problem - found a workaround

    Anyone who's tried running MS Word 2008 and Spaces knows that Word is pretty much unusable. The formatting palette moves to a different space, leaving behind the title bar, and the desktops just switch automatically, windows disappear, etc.
    Here's a workaround that actually makes it usable. Disable the Toolbox/formatting palette by clicking the "Toolbox" button at the top of the Word window. The formatting palette will go away. You don't want this, it's the root of all evil. To get access to the options in the formatting palette, right click on a blank space somewhere in one of the toolbars, and select the toolbars you want access to. Then the stuff that was available previously in the palette will be available as a toolbar instead.
    This bug has driven me nuts for months. NUTS. This seems to have fixed it. Just make sure you never enable anything that resembles the formatting palette and all should be fine. I haven't tried opening multiple word docs in different spaces yet, only the same space.

    Hi Sickels,
    Welcome an board to the Apple discussion forum for user to users ...
    First of all I like to tell you that this is the wrong forum to as ...
    Ad the Discussion Front page 'where ALL categories are' there is a section for Windows Compatibility. An when your computer specimens are correct it says OSX 10.4.X This is Leopard OSX 10.5.X
    Now to your question > Open the application Word.
    Now you will see on the right site of the Menu Bar 'FORMATTING PALETTE' next to the icon 'GALARY' click on it and the formatting palette will show up. To hide it click again on it.
    Dimaxum

  • Word wrapping in site studio?

    Hello,
    I'm trying to develop in Site Studio 7 and finding it cumbersome the way I always have to scroll across to view code. I've tried 'enable line wrapping' in the view -> customise menu, this doesn't seem to have any effect. Anyone else had this problem or know of a solution?
    Cheers
    M.Mix

    "Line wrapping" is not word wrapping. It inserts a physical line break when the line exceeds the specified length. If the text is continuous (no spaces) then no break is inserted. Pointless and yuck. We've been complaining about it for years, maybe Oracle's 11g release might address it.
    See Re: Suggestion for Site Studio Designer improvement

Maybe you are looking for

  • How do i get my ipod touch out of the 'recovery loop'?

    Ipod touch is in recovery mode.  When plugged into PC it has the display indicating that it needs to be connected to iTunes.  When it gets connected to iTunes it does appear as a device there.  ITunes requires the iPod to be restored, and in the rest

  • Solaris Cluster  - two machines - logical host

    Good morning! I am a complete dummie Solaris Cluster, buuuuuuuuuuuuuuuuuuuut... I need to create a cluster and install an application: I have two V440, with Solaris 10; I need to put the two machines in the cluster; I have CE0 of each of the machines

  • USB Drive crashing my AEBSn: Part II

    I posted previously on this issue but since then have attained a better understanding of the issue. I have an Acomdata 160 GB external drive that has been working fine for years. It works in all my machines just fine. However, when I plug it into the

  • Multiple servers with same IP but different ports - problem listing in ARD

    Hi - I have no problem connecting to multiple Macs behind a single IP (router) using different ports, port forwarding, dyndns, etc., etc. The problem I'm having is that in the list of computers in ARD, it won't let you have more than one with the sam

  • Variant in SAAB transaction

    Hi, I would like to know if a variant (created using SAAB transaction) can be shipped by SAP (through package and workbench) to production system. Thanks, Raghavendra