Notepad newline replaceAll issues

Hello,
I know this has been covered and I've thoroughly searched the threads, but haven't found resolution. The code is:
     Scanner input = new Scanner(sourceFile);
     PrintWriter output = new PrintWriter(targetFile);
     while (input.hasNext()) {
     String s1 = input.nextLine();
     String s2 = s1.replace(args[2], args[3]);
     output.println(s2);
    }I'm trying to comma separate a list in notepad that's currently separated by a new line
ex:
abstract
tost
nugget
ect
to:
abstract, tost, nugget, ect
I've tried passing \r\n and "\r\n" and many variations with no success. The code changes standard characters just fine, just not new lines. any suggestions?

I've tried passing \r\n and "\r\n" and many variations with no success. The code changes standard characters just fine, just not new lines. any suggestions?The Scanner is very powerful, you can use its useDelimeter() method to do generic replacement (with any pattern and replacement) as follows:
String patternToBeReplaced = "\r\n";   // your args[2]
String replacementString = ", ";       // your args[3]
Scanner scanner = new Scanner("Talha\r\nBin\r\nMasood");  // this is just for testing ,use your source file here
scanner.useDelimiter(Pattern.quote(patternToBeReplaced));
while (scanner.hasNext()) {
     System.out.print(scanner.next());  // write to target file instead
     if (scanner.hasNext())
          System.out.print(replacementString); // write to target file instead
}There can be other ways.
@Mel: s2? start=false at the beginning, not intutive :-)
Thanks!

Similar Messages

  • Issues fixed in FM 7.1 release

    Adobe FrameMaker 7.1 for English, French and German was released on January 10, 2004. The following is a list of issues fixed in this release.
    250374
    FDK: FA_Note_PreSetAttrValue notification not sent for new elements. If a client subscribes to FA_Note_PreSetAttrValue events, it will get a notification when one changes an attribute by double clicking it in the Structure view. However, on creation of a new element through the element catalog, if an attribute is set, no notification is sent.
    This issue has been resolved.
    277554
    FDK: F_ApiUnStraddleCells() does not work as expected.
    When unstraddling cells through the API, all the cells except the leading cell have no paragraph end marks (they are completely empty). Clicking into such cells takes the text cursor to the location of the table anchor. Inserting a character into the paragraph with the table anchor seems to correct the table.
    This issue has been resolved.
    310049
    FDK: F_ApiImport shows a dialog upon import of SGML entities.
    When importing an SGML fragment by reference using F_ApiImport, FrameMaker displays a dialog asking whether the text inset should be updated automatic or manually. This setting should be controlled from import-parameters.
    Currently there is no way of creating a client that imports a large number of SGML text-insets without having a user sitting by the keyboard and clicking OK for each imported entity.
    This issue has been resolved.
    314764
    FDK: F_ApiDelete does not work properly on elements inside a TextInset. When you try to delete an element that is part of a TextInset, the whole TextInset is removed.
    The work around for this is to unlock the text before calling F_ApiDelete and to lock the text after this call. The calls to unlock and lock the text are given below:
    To unlock - F_ApiSetInt(docId, insetId, FP_TiLocked, False);
    To lock - F_ApiSetInt(docId, insetId, FP_TiLocked, True);
    387821
    Microsoft Intellimouse Scroll wheel locks up FrameMaker when it's pressed or scrolled.
    This issue has been resolved.
    408675
    Rotated PDF files do not appear on 24-bit or 32-bit displays.
    This issue has been resolved.
    463533
    Non-unique ID tags cause inconsistent hypertext links due to multiple entries in the HTML export. If there are conflicting IDs in different documents of a book, non-unique ID tags are generated which cause this behavior.
    This issue has been resolved.
    507486
    If you edit the MAKER.INI file by adding the line SplashScreen=Off, in the [Preferences] section, then the Help->About command crashes FrameMaker with Internal Error: 7004, 6048898, 7639747, 0
    This issue has been resolved.
    529757
    (don't include) Marker element gets included and merged in PDF bookmarks with previous heading. In FrameMaker 6.0, the document prints to PDF as expected--the bookmarks in Acrobat PDF contain the Section2/Heading as expected, such as:
    Spark Plug Threads
    and Lamp Base and Electrical Fixture Threads
    In FrameMaker 7.0, the document prints to PDF with the Section2/Heading merged with the Run.head marker element, even though Run.head is in the ''Don't include'' list of elements in the PDF Setup dialog box.
    This issue has been resolved.
    534856
    The value of DPDFOpenBookmarkLevel is ignored when read in a MIF file.
    This issue has been resolved.
    534865
    The values Default, All, and None of the ''Bookmarks expanded through level'' field (in Format > Document >PDF setup) are not retained when a FrameMaker document is saved and opened again.
    This issue has been resolved.
    535630
    Windows Metafile (wmf) graphic (created from Microsoft VISIO 2002) causes "an error occurred while printing" but partially prints.
    This issue has been resolved.
    537955
    ISOdraw CGM graphics and tables on the same page cause CGM stroke lines to be printed in White.
    This issue has been resolved.
    540408
    Inconsistent dialog behavior between FrameMaker 6.0 and FrameMaker 7.0 when opening filename.sgm. Unlike FrameMaker 6.0, FrameMaker 7.0 displays the Unknown Filetype dialog.
    This issue has been resolved.
    540417
    Inconsistent dialog behavior between opening filename.sgm and filename.sgml.
    This issue has been resolved.
    541912
    TaggedPDF:fmpdfreflow plug-in - display of PDF file not good for shaded table cells. When table cells have shading in them, the PDF file does not show all the content of the shaded cells. This happens on Windows only.
    This issue has been resolved.
    565678
    PDF generation on UNIX translates CMYK colors to RGB.
    This issue has been resolved.
    567784
    FP_InsetFile has a value of "BadFileName" when SGML importing misses a graphic data file. If you import an SGML file that would read external graphic files and these data files are missing, then skipping or ignoring them results in "BadFileName" pathname for each object property. This makes FDK API Client not get FP_InsetFile property value for the FO_Inset object.
    This issue has been resolved.
    569092
    FrameMaker7 server can't find default printer when launched as a service.
    This issue has been resolved. To suppress the errors during initialization e.g.. No Default printer, invoke FrameMaker with the -silent option.
    569969
    When the Paragraph Designer is open, you can't switch to open documents using the book window.
    This issue has been resolved.
    581376
    FrameMaker works very slowly or returns an internal error. When processing a document that includes many EPS image files, FrameMaker creates many FRMxxxx.tmp files in the C:\Documents and Settings\Account Name\Local Settings\temp\ folder. The xxxx is a hexadecimal number. Even after quitting FrameMaker, the FRMxxxx.tmp files are NOT deleted, and the same document creates different FRMxxxx.tmp files after being opened again. The template files pile up in the hard disk for the Account/user, until the xxxx reaches ffff, the maximum number for the 4 digits of a hexadecimal number. At or near this time, FrameMaker works very slowly or stops with internal error:7004,6643018,6765315,6712018.
    This issue has been resolved.
    581522
    Imported PDF document with transparencies does not print correctly.
    This issue has been resolved.
    584633
    Internal Error: 7004, 6055410, 7657059, 0 when saving/printing to PDF includes Bookmarks that include index elements. The crash occurs only on Windows. The problem occurs when you attempt File > Print to PDF, when you want to Generate PDF Bookmarks based on structure elements, and have the ''Sectlevel1'' element in the ''Include Elements'' pane, and that particular ''Sectlevel1'' element plus the length of the text in the index marker entries exceeds 256 characters.
    This issue has been resolved.
    589859
    Post installation of Distiller 6.0, .tps file gets retained along with PDF and log file.
    This issue has been resolved.
    592974
    Opening a large XML file in FrameMaker generates error 'Internal Error 7004, 6052770, 0....
    When an XML file contained more than 65520(FFF0) children elements, FrameMaker crashed.
    This issue has been resolved.
    595875
    Spell check skips elements, loops around elements, or gets completely stuck.
    This issue has been resolved.
    597276
    The Save as PDF command does not create a PDF file (for certain files) when Generate Tagged PDF is ON
    This issue has been resolved.
    598056
    Group4 fax encoded TIFF files imported in FrameMaker 7.0 don't display nor print--does not occur in previous versions.
    This issue has been resolved.
    600053
    Display/Scrolling performance is very slow with documents having TIFF images imported by copy.
    This issue has been resolved.
    600497
    Scrolling a document in FrameMaker using Page Up/Down button goes to previous/next page respectively. Scrolling a document using Page Up and Page Down button goes to the previous and next page respectively. User would expect to scroll to the previous/next screen instead of going to previous/next page using these buttons, as seen in other Windows applications like MS Word, etc.
    This issue has been resolved.
    601470
    Links being dropped in SVG filter. Import an SVG file by reference (and the imported file has a link to another SVG file). Save this and reopen; the referenced SVG file is missing.
    This issue has been resolved.
    603668
    The text in the markers gets included in the PDF Bookmarks. Do not include textual content of marker elements, such as Index markers. This is because if you do, the Acrobat bookmarks can appear created if the element has:
    where Indexterm contains the marker text:
    <$startrange>PDF Creation;<$endrange>PDF:Good;How To:Create Good PDF
    ... You will end up with an Acrobat Bookmark containing:
    How To Create <$startrange>PDF Creation;<$endrange>PDF:Good;How To:Create Good PDFGood PDF ... which is not desirable.
    This issue has been resolved.
    606704
    In Server Setup dialog box, user name of the form "domain\username" does not allow names starting with b, r, etc. While trying to get FrameMaker to talk to the WebDAV server, which is using Windows authentication, when we specify a user name of the form "domain\username" in the "Server Setup" dialog box (File | Workgroup | Workgroup Servers ...). For some user names this works; for others it doesn't.
    This issue has been resolved.
    607610
    Framemaker crashes when Print is selected twice from the context menu for a book.
    This issue has been resolved.
    610099
    Drop Caps are not imported as TextFrames (RTFImport).
    This issue has been resolved.
    610600
    Words on which cross references are created are getting dropped while importing doc file (Word2000Import). Create a cross reference on some word in MS Word, and import the doc file into FrameMaker. The word on which the cross reference is created is getting dropped.
    This issue has been resolved.
    611165
    Words on which cross references are created are getting dropped while importing rtf file (RTFImport). Create a cross reference on some word in MS Word, and import the rtf file into FrameMaker. The word on which the cross reference is created is getting dropped.
    This issue has been resolved.
    611802
    Text which is rotated is lost when exporting to RTF.
    This issue has been resolved.
    611900
    FrameMaker locks referenced files until the application closes.
    This issue has been resolved.
    613546
    The filter name in the unknown file type for import is Microsoft RTF whereas for Export it is Microsoft RTF 1.6.
    This issue has been resolved.
    616153
    Contents of anchored frames not visible after save as PDF with Tags. After saving a document with anchored frames as PDF with Tags enabled, the contents of the frame are not visible in the PDF generated.
    This issue has been resolved.
    624470
    footnote element mapping to Frame Footnote is commented in Rules defined for XDocBook. In application definition of XDocBook in $FMHOME/structure/xml/xdocbook/app, footnote element mapping is to FM Footnote element. However, this rule is commented since past few releases. As a result, any (xdocbook) XML document with footnote is shown as invalid in FrameMaker.
    This issue has been resolved.
    624472
    Revision remark (revremark) element is mapped to different element names in EDD and rules. Rules for XDocBook in $FMHOME/structure/xml/xdocbook/app translate revremark to RevRemark. However, EDD (ECM) defines Revremark as mapping for revremark element. Hence a valid xdocbook XML document with revremark is shown as invalid (with unknown RevRemark element) in FrameMaker.
    This issue has been resolved.
    624517
    Unable to open FrameMaker 7.0-created fm file, which is created by importing a Word document.
    This issue has been resolved.
    625306
    Office documents don't open in FrameMaker in absence of write permissions (UNIX).
    This issue has been resolved.
    626431
    For line spacing, values that are beyond range are not mapped correctly (RTFExport). For line spacing in frame document which are beyond the max or min range of RTF, the mapping is not correct and same value of line space I mapped to three different values in RTF.
    This issue has been resolved.
    626434
    For stretch, values that are more than 600 are not mapped correctly in RTF (RTFExport). For stretching in frame doc that are beyond max value in RTF (600), the mapping is not correct. There is no stretching (scaling in RTF) in effect in exported RTF for values greater than 600 specified in frame.
    This issue has been resolved.
    626450
    Current date and time are not getting exported properly and are coming as 0's and XXX (RTFExport).
    This issue has been resolved.
    627855
    After saving as PDF, headings are centered in reflow mode. After a particular file is saved as a PDF file and is viewed in reflow mode in Acrobat, the headings are centered.
    This issue has been resolved.
    631967
    Installer does not recognize existing installation.
    This issue has been resolved.
    633133
    Right indents are not mapped while importing Excel
    This issue has been resolved.
    633137
    Data in the Custom formatted cell is lost while importing excel sheet.
    This issue has been resolved.
    633462
    FrameMaker terminates while exporting to RTF.
    This issue has been resolved.
    633710
    You have to give a filename with extension, while saving a file to RTF.
    This issue has been resolved.
    638750
    A PS file generated from FrameMaker with Tagged PDF on and hypertext marker in the file, cannot be distilled to PDF
    This issue has been resolved.
    638824
    Dialog Box indicating Unsaved changes made to file is not displayed on closing a document after importing an image using drag and drop.
    This issue has been resolved.
    639220
    If you select a Master Page or a Reference Page and select Save as PDF, PDF generation fails without giving appropriate error message.
    This issue has been resolved.
    641918
    When converting a FrameMaker book to PDF: default opening page in PS/PDF may be incorrectly set to be the first page of last chapter in a book.
    This issue has been resolved.
    642765
    On drag and drop of a SVG file into FrameMaker, if you click on the cancel button on the Import SVG dialog, the cancel is ignored and the file is imported.
    This issue has been resolved.
    643092
    If United Kingdom is chosen as the country of purchase, the EULA contains the string "FrameMakerDesktop _USEnglish_1.21.02_17:29".
    This issue has been resolved.
    644158
    Following alerts can not be suppressed via command line option:
    . Register now/later/never
    . Adobe Online
    These can be now suppressed using the -noaol command line option or by using the DisableAdobeOnline=On option in the maker.ini file.
    644904
    An empty merged cell(256 columns) created in Excel imports as a blank file.
    This issue has been resolved.
    645230
    If you import a Word document having large number of footnotes in FrameMaker, the footnotes are overlapped.
    This issue has been resolved.
    645538
    Cross reference text when exported to RTF has an additional space after the cross reference text.
    This issue has been resolved.
    645863
    When an excel file containing cells applied with custom formatting is imported in FrameMaker, the font and color of these cells is different in FrameMaker.
    This issue has been resolved.
    646609
    When a specific excel file is being imported the data in the first cell is lost.
    This issue has been resolved.
    646676
    When saving a MIF file, then opening it in FrameMaker, the DPDFZoom settings are lost.
    This issue has been resolved.
    647770
    User defined variables with _ in their name when saved to xml and opened again in Frame, round-trip as fmv1, fmv2 ...
    This issue has been resolved.
    648043
    When you try to open/import a file with a name containing more than two % signs and at least 1 non-% character between the second and third % sign then FM gives an error saying the file is non-existent
    This issue has been resolved.
    648114
    Info>Copyright>More crashes FrameMaker
    This issue has been resolved.
    648434
    When you import an RTF file with a cropped image in FrameMaker, it is imported in its original uncropped form.
    This issue has been resolved.
    649640
    When a word document having text with decimal numbering is imported, the sub points (1.1,1.2,...) are imported as (0.1,0.2,..)
    This issue has been resolved.
    650631
    When you import a word document having numbering points with comment on each numbered point, the font size of the numbering point is reduced.
    This issue has been resolved.
    650962
    FrameMaker crashes on scaling any anchored frame on reference pages.
    This issue has been resolved.
    652229
    When you import a word file with ascending raised/lowered baselines then they are not imported correctly.
    This issue has been resolved.
    652433
    When you import an excel file containing date formatting having mm format, FrameMaker inserts an extra zero before the date.
    This issue has been resolved.
    652752
    If you install FrameMaker from network, the short cut to readme file opens it in notepad.
    This issue has been resolved.
    652794
    The alert Inconsistent settings in Book" during F_ApiSilentPrintDoc() can not be suppressed.
    This issue has been resolved.
    654309
    When you import a word document having numbering (1.1,1.2,..) placed after some non-decimal numbering(1,2,3), FrameMaker imports it as (3.1, 3.2,..).
    This issue has been resolved.
    654348
    When you save an inline image as .doc in Acrobat6 and import this word file in FrameMaker, FrameMaker enlarges the graphics on import.
    This issue has been resolved.
    655072
    When you have an user defined variable in the frame document as well as the template, you save this document as XML and open the XML file again in frame, the template definition overrides that of the document.
    This issue has been resolved.
    655726
    Full license number is displayed in the Help>About FrameMaker 7.0 screen.
    This issue has been resolved.
    656171
    Full license number is displayed in the FrameMaker 7.0 Splash screen.
    This issue has been resolved.
    656820
    If you zoom or move frames after importing a graphic in FrameMaker, Framemaker logs out the user from Unix machine.
    This issue has been resolved.
    657053
    If a frame document displays images from the reference page and you simultaneously open multiple such documents, then the images from the document opened first can replace the images in the other documents
    This issue has been resolved.
    658744
    If you open an XML file locked by some other application, FrameMaker shows a Validation Error dialog box. For this to work, the XML locking feature should not be switched off.
    This issue has been resolved.
    658749
    The German version of Online manual xmlcss.pdf has comments in it.
    This issue has been resolved.
    Known Issues
    The printed user guide, on-line help and QRCs will not change between the FrameMaker 7.0 release and FrameMaker 7.1. Certain online manuals will be updated, and a new online supplement will be added to cover user documentation of the new release.
    [Original message from Forrest_F accidentally deleted when Forum re-organized]

    Read this SAP Note - Note 1487853 - SAP NetWeaver MDM 7.1 SP07 Release
    or refer the link
    http://help.sap.com/saphelp_mdm71/helpdata/en/4d/885f32b97d14aee10000000a42189c/content.htm
    Similaryly read for SP06 fixes at - http://help.sap.com/saphelp_mdm71/helpdata/en/be/e0048b426b4c20957078b61ec71e46/content.htm
    These links gives you an idea of what all changes are going to come into your new system. So unless you upgrade to SP07 i.e. the latest version and test it in DEV/Sandbox environment you should not plan to move ahead in Production. This is always recommended but there is very less chance that the already working solution will not work as expected after the upgrade.
    Thanks,
    Shambhu.

  • Windows Server 2008 and Crystal Reports 8.5 printing issue

    I am having a problem when using the crystal reports 8.5 report viewer ocx (ActiveX) under Windows Server 2008.
    When logging onto the server through remote desktop, a report can be shown on screen in preview. When this report is printed, and the user requests more than one copy, the printer only ever prints one copy. Is this a configuration of the terminal server, or simply that the ocx control doesn't cater for it?
    I am using the Windows Server 2008 "Terminal services Easy Print" drivers on the terminal server.
    Any suggestions would be welcome.

    Hi Sastry
    I can print multiple pages from notepad without any issues. It is only the print from the crystal OCX control that has the issue. It has it's own print dialog box.
    Thanks
    Peter

  • Printing in color or black & white in VB6 and Crystal Reports 8.5

    Post Author: elsyvaldez
    CA Forum: General
    How can I programatically print in color or black & white?  I am programming in Visual Basic 6.0 using the Crystal Reports 8.5 Active X Designer Runtime Report object (CRAXDRT.dll).    Our users want the option to print either in color or black & white to a color printer.  I am trying to print many separate reports (for a large group of accounts) in one click of the VB6 "Print" command button without having to display the Printer Setup dialog box for each separate report.  The Report object in CRAXDRT has a method to display the printer setup dialog box but has no property to change "Color" mode (similar to the "PaperOrientation" or "PrinterDuplex" properties).  Is there a way that our users can bring up the Printer Setup dialog box just once, choose color mode, and then make this choice effective for all separate reports printed using CRAXDRT?

    Hi Sastry
    I can print multiple pages from notepad without any issues. It is only the print from the crystal OCX control that has the issue. It has it's own print dialog box.
    Thanks
    Peter

  • Very confused beginner here...

    Hello everyone. I'm new to the board here. I am currently a junior meteorology major with a minor in computer science at Millersville University. To incorporate both my minor and major, I decided to make a computer program that scrolls weather watches and warnings across the bottom of a computer screen (much like they do on television). I am a beginner at Java, only using it for a few months. I really feel like I have bitten off more than I can chew with this program. However, I am dedicated in working through this problem. Below is a copy of the code I am using for this. I keep getting errors, however. I had it working perfectly, besides the fact that a) it never updated and b) it would never scroll more than one watch or warning, meaning it would just loop one over and over. I have also included the errors that I receive during this. Any help would be greatly appreciated. I am sorry if the code looks a bit trashy and disorganized. These are just some things, being a rookie, that I am going to have to learn how to clean up. Thanks
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.Timer;
    import javax.swing.*;
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.net.*;
    import de.nava.informa.core.ChannelIF;
    import de.nava.informa.core.ItemIF;
    import de.nava.informa.impl.basic.ChannelBuilder;
    import de.nava.informa.parsers.FeedParser;
    public class WxScroll extends JFrame implements ActionListener {
         private static final long serialVersionUID = 1L;
         int count = 0;
         JLabel scrollLabel;
         String scroll, watwarstring, text;
         Label label;
         ItemIF item;
         Component newText;
         String watwar[];
         String newscroll, oldText;
         ChannelIF channel;
         Collection items;
         final TimerTask task;
         java.util.Timer timercheck;
         ChannelBuilder channelb;
         URL url;
         public WxScroll() {
              final Color red = new Color(255, 0, 0);
              final Color yellow = new Color(255, 255, 0);
              final Color orange = new Color(255, 165, 0);
              final Color darkred = new Color(205, 38, 38);
              final Color orangered = new Color(255, 69, 0);
              final Color darkmagenta = new Color(139, 0, 139);
              final Color blueviolet = new Color(138, 43, 226);
              final Color lime = new Color(50, 205, 50);
              final Color goldenrod = new Color(205, 155, 29);
              final Color deeppink = new Color(255, 20, 147);
              final Color lightsteelblue = new Color(176, 196, 222);
              final Color yellowgreen = new Color(154, 205, 50);
              final Color limegreen = new Color(34, 139, 34);
              final Color burlywood = new Color(222, 184, 135);
              final Color paleturquoise = new Color(102, 139, 139);
              final Color springgreen = new Color(0, 238, 118);
              final Color seagreen = new Color(46, 139, 87);
              final Color greenyellow = new Color(127, 255, 0);
              final Color steelblue = new Color(54, 100, 139);
              final Color royalblue = new Color(65, 105, 225);
              final Color hotpink = new Color(255, 105, 180);
              final Color tan = new Color(205, 133, 63);
              final Color skyblue = new Color(135, 206, 250);
              final Color palevioletred = new Color(219, 112, 147);
              final Color slateblue = new Color(0, 127, 255);
              final Color coral = new Color(255, 127, 0);
              final Color cornflower = new Color(100, 149, 237);
              final Color maroon = new Color(176, 48, 96);
              try {
                   URL url = new URL("file:misslebeep2.wav");
                   AudioClip ac = Applet.newAudioClip(url);
                   ac.play();
              } catch (Exception e) {
              timercheck = new java.util.Timer();
              task = new TimerTask() {
                   public void run() {
                        try {
                             channel = FeedParser
                                       .parse(
                                                 channelb = new ChannelBuilder(),
                                                 url = new URL(
                                                           "http://www.weather.gov/alerts/wwarssget.php?zone=COZ041"));
                        catch (Exception e) {
                             System.out.println("exception");
                        finally {
                             items = channel.getItems();
                             scrollLabel = new JLabel(newscroll);
                             for (Iterator i = items.iterator(); i.hasNext();) {
                                  count++;
                                  ItemIF item = (ItemIF) i.next();
                                  scroll = item.getDescription();
                                  newscroll += scroll
                                            .replaceAll("<br>", " ")
                                            .replaceAll(
                                                      "Issuing Weather Forecast Office Homepage",
                                            .replaceAll("</a>", " ")
                                            .replaceAll(
                                                      "<a href=http://www.nws.noaa.gov/er/ctp>",
                             if (newscroll.contains("There are no active"))
                                  scrollLabel.setVisible(false);
                             else {
                                  scrollLabel.setBackground(red);
                                  if (newscroll.contains("Tornado warning".toUpperCase()))
                                       scrollLabel.setBackground(red);
                                  if (newscroll.contains("Severe thunderstorm warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(orange);
                                  if (newscroll.contains("Flash Flood Warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(darkred);
                                  if (newscroll
                                            .contains("Blizzard Warning".toUpperCase()))
                                       scrollLabel.setBackground(orangered);
                                  if (newscroll.contains("ice storm warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(darkmagenta);
                                  if (newscroll.contains("short term".toUpperCase()))
                                       scrollLabel.setBackground(burlywood);
                                  if (newscroll.contains("heavy snow warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(blueviolet);
                                  if (newscroll.contains("heavy sleet warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(skyblue);
                                  if (newscroll.contains("flood warning".toUpperCase()))
                                       scrollLabel.setBackground(lime);
                                  if (newscroll.contains("high wind warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(goldenrod);
                                  if (newscroll
                                            .contains("red flag warning".toUpperCase()))
                                       scrollLabel.setBackground(deeppink);
                                  if (newscroll.contains("wind chill warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(lightsteelblue);
                                  if (newscroll.contains("freeze warning".toUpperCase()))
                                       scrollLabel.setBackground(Color.cyan);
                                  if (newscroll.contains("snow watch".toUpperCase()))
                                       scrollLabel.setBackground(Color.cyan);
                                  if (newscroll.contains("flood statement".toUpperCase()))
                                       scrollLabel.setBackground(yellowgreen);
                                  if (newscroll.contains("tornado watch".toUpperCase()))
                                       scrollLabel.setBackground(yellow);
                                  if (newscroll.contains("severe thunderstorm watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(palevioletred);
                                  if (newscroll.contains("flash flood watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(limegreen);
                                  if (newscroll.contains("freezing rain".toUpperCase()))
                                       scrollLabel.setBackground(slateblue);
                                  if (newscroll
                                            .contains("freezing drizzle".toUpperCase()))
                                       scrollLabel.setBackground(slateblue);
                                  if (newscroll.contains("sleet advisory".toUpperCase()))
                                       scrollLabel.setBackground(slateblue);
                                  if (newscroll.contains("winter weather advisory"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(burlywood);
                                  if (newscroll.contains("wind chill advisory"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(paleturquoise);
                                  if (newscroll.contains("heat advisory".toUpperCase()))
                                       scrollLabel.setBackground(coral);
                                  if (newscroll.contains("flood advisory".toUpperCase()))
                                       scrollLabel.setBackground(springgreen);
                                  if (newscroll.contains("snow advisory".toUpperCase()))
                                       scrollLabel.setBackground(paleturquoise);
                                  if (newscroll.contains("wind advisory".toUpperCase()))
                                       scrollLabel.setBackground(tan);
                                  if (newscroll.contains("frost advisory".toUpperCase()))
                                       scrollLabel.setBackground(cornflower);
                                  if (newscroll.contains("flood watch".toUpperCase()))
                                       scrollLabel.setBackground(seagreen);
                                  if (newscroll.contains("blizzard watch".toUpperCase()))
                                       scrollLabel.setBackground(greenyellow);
                                  if (newscroll.contains("winter storm watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(steelblue);
                                  if (newscroll.contains("winter storm warning"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(hotpink);
                                  if (newscroll.contains("high wind watch".toUpperCase()))
                                       scrollLabel.setBackground(goldenrod);
                                  if (newscroll.contains("excessive heat watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(maroon);
                                  if (newscroll.contains("freeze watch".toUpperCase()))
                                       scrollLabel.setBackground(royalblue);
                                  if (newscroll
                                            .contains("wind chill watch".toUpperCase()))
                                       scrollLabel.setBackground(royalblue);
                                  if (newscroll.contains("excessive heat watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(maroon);
                                  if (newscroll.contains("excessive heat watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(maroon);
                                  if (newscroll.contains("excessive heat watch"
                                            .toUpperCase()))
                                       scrollLabel.setBackground(maroon);
                                  scrollLabel.setFont(new Font("Arial", Font.BOLD, 40));
                                  getContentPane().add(scrollLabel, BorderLayout.SOUTH);
                                  scrollLabel.setOpaque(true);
                                  scrollLabel.setForeground(Color.white);
         // create 2nd timer. give time of 1000ms.
         // event.getsource...in action performed
         timercheck.scheduleAtFixedRate(task, 1000, 10000);
         Timer timer = new Timer(120,this);
         //javax.swing.Timer timer = new javax.swing.Timer(120, this);
         timer.start();
         public void actionPerformed(ActionEvent event) {
              oldText = scrollLabel.getText();
              StringBuffer newText = new StringBuffer(oldText.substring(1) + oldText.substring(0, 1));
              String text = newText.toString();
              scrollLabel = new JLabel (text);
              //scrollLabel.setText(newText.toString());
         public static void main(String[] args) {
              Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
              int y = (14 * screen.height) / 15;
              WxScroll frame = new WxScroll();
              JLabel title = new JLabel("WxScroll");
              JPanel titlePanel = new JPanel();
              titlePanel.setPreferredSize(new Dimension(0, 0));
              titlePanel.add(title);
              frame.setLocation(0, y);
              // paint component method, drawstring,
              frame.setUndecorated(true);
              frame.setAlwaysOnTop(true);
              frame.getContentPane().add(titlePanel);
              frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
              frame.pack();
              frame.setVisible(true);
    }The errors i receive are:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at WxScroll.actionPerformed(WxScroll.java:289)
         at javax.swing.Timer.fireActionPerformed(Unknown Source)
         at javax.swing.Timer$DoPostEvent.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    I don't know. There are classes your code requires (e.g., everything in the de.nava.informa packages) that I don't have, so I can't really compile or run your code.
    I will say this: it's a confused mess. There's too much code and too little abstraction. This is typical of beginning object-oriented programmers.
    When you start seeing LOTS of repeated stuff like this:
                      if (newscroll.contains("Tornado warning".toUpperCase()))
                         scrollLabel.setBackground(red);
                      }alarm bells should start ringing in your head. It appears that a Map with a String as key and Color as value is wanted. I can make all that code collapse into something MUCH smaller. If I externalize all those awful Color declarations into a File that's read on startup (e.g., taking in the key message and the RGB values and initializing the Map), now I have something that I can change more easily. AND there's less code to manage.
    I see URLs, applet, TimerTask, HTML - the kitchen sink.
    I can't tell you what this class is about.
    Be lazier - write less code. That's what good programmers do.
    Try to think more abstractly.
    %

  • Proxy 4.04 : Manual configurations of .conf files not loading

    Hello,
    Apologies if i sound a bit noobish , but some questions regarding manually configuring files (*.conf) using notepad/vi.
    Issue now is , whenever i use a script or manually copy & paste newer configs, i do not get prompted for the reload configuration prompt like in 3.6. While i do realize the software supports dynamic reconfiguration , but i noticed that there is no updates show in my admin server (e.g , updated templates in obj.conf but in admin server -> view templates , it's not showing). And no prompt to "load configuration files). I'm running java that came with the package itself btw.

    Hello,
    Apologies if i sound a bit noobish , but some questions regarding manually configuring files (*.conf) using notepad/vi.
    Issue now is , whenever i use a script or manually copy & paste newer configs, i do not get prompted for the reload configuration prompt like in 3.6. While i do realize the software supports dynamic reconfiguration , but i noticed that there is no updates show in my admin server (e.g , updated templates in obj.conf but in admin server -> view templates , it's not showing). And no prompt to "load configuration files). I'm running java that came with the package itself btw.

  • Windows 7::Clipboard becomes unusable.

    Hello, 
    I run a Windows 7 Enterprise (SP1) and use Microsoft Outlook 2013, Lync 2013 and regular Microsoft Office 2013 suite and I often find that the clipboard gets locked by one of the applications and from then on, I am unable to use the clipboard at all. Unless
    I reboot my system, it never comes up. Also, I have to repeatedly try copying to get some text to copy and paste multiple times in order to get the CTRL+C->CTRL+V action complete. How do I find what application is using /has locked the clipboard
    and how should I free it? 
    Thanks. 

    Hi PrandoMan,
    When did this issue occur ? Did you install any software recently?
    Can you paste and copy in the other applications such as the Notepad when this issue occurs ?
    According to our research, this issue seems to be related to rdpclip.exe sometimes.
    Here is a link for reference:
    Why has my clipboard stopped working?
    http://blogs.msdn.com/b/oldnewthing/archive/2008/06/04/8572362.aspx
    Here is another link for reference(Pay attention to Win7Tester`s answer):
    Copy + Paste (Clipboard) Issues / Not Working
    https://social.technet.microsoft.com/Forums/windows/en-US/5bbc11e8-ca2d-41ac-b640-d66ce971f58f/copy-paste-clipboard-issues-not-working
    As for the "Access is Denied",have you try to run it as an administrator.
    To run as an administrator:
    Search "cmd "from the start bar and right click the cmd icon "Run as Administrator".
    Best regards

  • Newline call of \n appears as block in notepad..

    Just curious about the \n call in java, and it's reference in notepad.
    I have created a bunch of text files and have \n calls in the strings I am writing to them. When I open the file in notepad I see blocks where the return is supposed to be. But in wordpad it views fine.
    Anyone know a fix for this or is it just an issue w/ notepad?
    thanks

    It's a Windows thing. The solution is not to explicitly output newline:
    writer.write("bad\ndoggy\n");but to use methods that output the platform-appropriate line termination for you. For example a PrintWriter:
    pw.println("bad"); //note 'ln'
    pw.println("doggy");or a BufferedWriter:
    bw.write("bad");
    bw.newLine();
    bw.write("doggy");
    bw.newLine();

  • Issue with 2D Barcode Datamatrix unwanted extra spaces/newline

    Hi All,
    We are facing an issue with data matrix 2D barcode in the label.(It's urgent)
    Below is the data we are using in 2D datamatrix with quality ECC200 .
    and also we are using hex characters to seperate the data i.e. '_1D' -gs '_1E' -rs '_04' -eot and '_20'- for space
    ^FO1380,1879^BY4^BXR,6,200^FH^FD
    [>_1E06_1DF01001P_1D1JUN888472136000031155_1DV0015468200_1D16K80003931_1D6D20140220095_1D2L14/D44/KOD44_1D7Q10023KG_1DB0004SCH_1
    DF02010I_1DP_201S0_20959_20263_20A_1D4LSK_1D7Q120PC_1D7Q1012358_1E_04^FS
    As you see in the image below ,we are not providing any extra space after the character 263  and  new line after A .i.e. for value P_201S0_20959_20263_20A
    still its taking extra spaces and goes on new line when scanned with TSB generator.
    Can anyone please provide the solution to avoid this spaces and new line coming in the scanned copy below :

    i dont know the exact reason but i know this happens..
    practically what we did was we added a blank field in our final internal table as first field. we named the field as : '_________' (Some underscores) . so that in excel it wont look like any field.
    and passed nothing to it in each line...
    and after getting the excel we can delete the first column.

  • Zsh PS1 tty console color issues with newline

    So in a tty I get only white in my PS1 when I use 2 lines:
    PS1="%{%F{white}%}%~ %{%F{green}%}%{%f%}%(10l.
    .)>> "
    My old PS1 works fine though:
    PS1="%{%F{white}%}%~ %{%F{green}%}>> %{%f%}"
    Anyone have any ideas / workarounds?

    copy the rxvt-unicode-256color terminfo to ~/.terminfo/r/ on the remote and make sure your $TERM is set to it. If you get a error about it being too long either fix ssh on the remote, or just rename it and chante TERM acordingy.
    Last edited by Mr.Elendig (2011-05-28 08:03:05)

  • Newline issue in the UWL Description

    We are using parameterized user Texts in our BPM tasks.
    But in UWL the data is not showing in new lines
    For example : we have User texts defined as follows
    Vendor : {Vendor Name}
    Requestor ID :
    On Date:
    But the Desfription in UWL is showing as below
    Vendor : XYZ
    Requestor ID : absOn Date: 21/09/2011
    Please approve the request
    On Date should be in new line. We are using CE BPM 7.11 version.
    Please advise any solution or workaround to handle this situation
    Thanks
    Suraj

    Hi Devara,
    Thanks for your reply.
    I did tried your suggestion but it didnt work for me.
    Vendor:                     {VendorName}                    {POType}                      {POTypeDesc}                                   Value: ${POValue}   
    Purchasing Group:  {PurchasingGroup}                                  {PurchasingGroupName}   
    Raised by:                 {Requestor}                                               on: {PODate}   
    but the output was
    Vendor: XYZ Z1 Test Value: $10.0
    Purchasing Group: ABCRaised by: Suraj on: 2011-09-23
    Any other suggestions?
    Regards

  • Parsing issue (split, replaceall)

    I am working on a project for school and I am unable to get a decent PrintWriter statement to work the way I would like. The structure of my classes force me to access an object array through another object array. When I go to print it out in PrintWriter I get "[]" around each toString method even if it is empty:
    [John Smith 213]
    In other terms, I have a resident class that creates a visitor ArrayList. So therefore, when I print out my visitors, I access them through the residents. What is happening is when I print out the visitors through the residents, I have a number of residents who do not have any visitors assigned to them. When this happens a []\n occurs like above. Is there a way that I can sort through the ArrayList to remove all the empty entries? I'm sure this is super easy, but I am just beating myself here....
    public void readVisitors(KeylessManager manager){
              visitorFile = new File(VISITOR_FILE_NAME);
              String inLine= "";
              BufferedReader visitorInputStream;
              try{
                   visitorInputStream = new BufferedReader(new FileReader(visitorFile));
              while ((inLine = visitorInputStream.readLine()) !=null){
                   String[] tokens = inLine.split("[ |,]+");
                   String fN = tokens[0];
                   String lN = tokens[1];
                   String aN = tokens[2];
                   manager.addVisitor(manager.getResident(aN),
                             new Visitor(fN,lN,aN));
              visitorInputStream.close();
    public void writeVisitor(ArrayList<Resident> visitors){
         visitorFile = new File(VISITOR_FILE_NAME);
         PrintWriter visitorOutputStream;
         try{
              visitorOutputStream = new PrintWriter(new FileWriter(visitorFile,true));
              Iterator<Resident> iter = visitors.iterator();
              while(iter.hasNext()){
                   visitorOutputStream.println(iter.next().printVisitors().toString());}
                   visitorOutputStream.close();
    public ArrayList<Visitor> getVisitors(){
             ArrayList<Visitor> arrayVisitor =
                  new ArrayList<Visitor>(v.values());
             Collections.sort(arrayVisitor);
             return arrayVisitor;}

    So you're writing the String produced by anArrayList.toString() to a file, and then trying to read it back into you application without the square brackets? Then my suggestion is: don't do anArrayList.toString(), but write the individual elements from your anArrayList to a file.
    If I'm mistaken, then you'll need be a bit more specific I'm afraid.
    Good luck.

  • Xsl:if creates unwanted newline [SOLVED]

    Hi there.
    I'm making a report, with some images. This works fine (it's just an image of a checkbox, base64 data..). However, when printing many lines, I only want to print the checkbox if it's actually text there.
    Short explanation:
    Q1 Q2
    Q3 Q4
    Q5
    I don't want the last line (which WOULD have been Q6) to print the image aswell. (That is; I only want it to print once for the Q5)
    Here's my code:
    <xsl:if test="Q_NR!='' "><fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMG"/></fo:instream-foreign-object></xsl:if>
    And this mess up my entire report with newline with the image.
    If I use only
    <fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMG"/></fo:instream-foreign-object>
    then the images print exactly as I want them.
    How can I get around this issue?
    P.S: The if quoting is like this:
    if test=(double quotes)Q_NR != (two single quotes) (double quote)

    if@inlines should do the trick.

  • Flex 3 json newlines error

    using flex 3 and XP and firefox
    I'm reading simple json from a local file to test my app
    before building the backend. If I have a newline in my json file I
    get an error, but it works without the newline. My json file is:
    [{"id":"xyz", "description":"now is the time for"},
    {"id":"xyz", "description":"now is the time for"}]
    while my code is attached. What am I doing wrong?

    Well, no, I don't think this is the solution. But I did
    resolve the issue by going into
    C:\WINDOWS\system32\Macromed\Flash\FlashPlayerTrust
    (I think I actually had to create that folder) and I added a
    file (I arbitrarily named it "Local.cfg" but the filename is
    inconsequential). In the file name I added the full path to my
    Flex\samples folder and things are working hunky-dory.
    I guess I'm wondering, if I had to do this, it's quite likely
    that every other Windows user in the world has to do this, so why
    is there no mention of it in the samples documentation?
    Or, is there something bizarre going on with my settings that
    I should look at?

  • List of forum editor issues and bugs

    This thread is work in progress. Please report additional bugs and issues you are aware off. I will try to reproduce the issue and add your information to the appropriate columns below. Thanks!
    Note: For accurate results, the width of your web browser window needs to be adjusted to show the following dotted line as a single line. Your screen resolution needs to be at least 1280 pixels wide.
    Issue
    Date
    Summary
    Browser
    Status
    Remark
    1
    08-Jan-2014
    last verified
    24-Aug-2014
    Text copied from discussions, such as code, result in double line spacing when copied to the host system.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    fixed
    fixed
    1.1
    1.2
    2
    08-Jan-2014
    last verified23-Aug-2014
    Cannot append text or code to Syntax Highlighting.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    3
    08-Jan-2014
    last verified23-Aug-2014
    Cannot properly select text or code with Syntax Highlighting.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    fixed
    fixed
    fixed
    3.1
    4
    08-Jan-2014
    last verified23-Aug-2014
    Subsequent edit sessions add empty lines to Syntax Highlighting code.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    5
    08-Jan-2014
    last verified23-Aug-2014
    Copying text under Syntax Highlighting includes line numbers.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    open
    fixed
    fixed
    5.1
    5.2
    6
    08-Jan-2014
    last verified23-Aug-2014
    Cannot copy and paste the whole Syntax Highlighting frame.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    fixed
    improved
    improved
    6.1
    6.3
    6.3
    7
    09-Jan-2014
    last verified23-Aug-2014
    Syntax Highlighting suppresses empty lines and white space when browsing.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    8
    08-Jan-2014
    last verified23-Aug-2014
    Syntax Highlighting overwrites font.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    improved
    improved
    improved
    8.1
    8.1
    8.1
    8.1
    9
    09-Jan-2014
    last verified23-Aug-2014
    Cannot paste any text into the editor window.
    Firefox
    Internet Explorer 11
    Safari
    Chrome
    working
    fixed
    working
    working
    10
    09-Jan-2014
    last verified23-Aug-2014
    Cannot change the font when selecting several lines of text.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    working
    fixed
    improved
    10.1
    10.1
    11
    09-Jan-2014
    last verified23-Aug-2014
    Changing the font gets confused and shows the wrong font.
    Firefox
    Internet Explorer
    Safari
    Chrome
    improved
    working
    open
    open
    11.1
    11.3
    11.3
    12
    09-Jan-2014
    last verified23-Aug-2014
    Pasting a URL captures the text insertion point.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    13
    16-Jan-2014
    last verified23-Aug-2014
    Quoting captures insertion point.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    14
    24-Jan-2014
    last verified23-Aug-2014
    Adding HTML label tag for no apparent reason.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    15
    28-Feb-2014
    last verified23-Aug-2014
    Undo disables functions, such as Quote and Syntax Highlighting and results in complete loss of text when attempting to post.
    Firefox
    Internet Explorer
    Safari
    Chrome
    Improved
    working
    working
    working
    15.1
    16
    28-Feb-2014
    last verified23-Aug-2014
    Syntax Highlighting shows several <span> when browsing.
    Firefox
    Internet Explorer
    Safari
    Chrome
    fixed
    fixed
    fixed
    fixed
    17
    23-Jun-2014
    last verified23-Aug-2014
    When specifying a table width, typed numbers are falling through and land the table as text.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    18
    23-Aug-2014
    Quoting of content with Syntax Highlighting looks fine when editing, but when posting, quoting around SH is removed.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    19
    22-Aug-2014
    Text like "Patch 11.2.0.3" are converted to non-functional hyperlinks when posting.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    20
    20-Jul-2014
    last verified23-Aug-2014
    The editor toolbar disappears behind the forum banner when scrolling to the next page.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    21
    17-Nov-2014
    Insertion point displayed in text under Syntax Highlighting is not showing the real position.
    Firefox
    open
    22
    23-Aug-2014
    Hover-up and pop-up menus are in the way then typing text in tables and code under Syntax Highlighting.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    23
    23-Aug-2014
    Copying text from the first post of a thread includes a grey background.
    Firefox
    Internet Explorer
    Safari
    Chrome
    working
    working
    open
    open
    24
    24-Aug-2014
    Copy and paste does not retain the size of a picture and resizing produces bad quality images. Resizing also no longer shows picture dimensions. Copying images between documents does not copy size settings.
    Firefox
    Internet Explorer
    Safari
    Chrome
    open
    open
    open
    open
    25
    17-Nov-2014
    Copying and pasting of text determine the source format and creates unwanted or useless tables, affecting also Syntax Highlighting.
    Firefox
    open
    26
    17-Nov-2014
    Adding additional rows to tables do not inherit the previous cell formats, such as vertical and horizontal center line.
    Firefox
    working
    27
    02-Dec-2014
    The Jive spell-checker is difficult to use. Pointing and clicking of marked text has to be very precise in order to function, or the spell-checker deactivates itself.
    Firefox
    open
    Ref. No.
    Remarks
    1.1
    Pasting of regular text results in double-line spacing. Pasting of code with Syntax Highlighting does not produce double-line spacing, but includes line numbers when pasting in a rich text editor window, or results in indented lines when pasting to the command prompt or plain text window.
    1.2
    Pasting of code with Syntax Highlighting includes line numbers when pasting into notepad or to the command prompt. Copying of normal text does not wrap and appears a single line when pasting into notepad.
    3.1
    Selecting of code and copying works, but selected text looks like a tape and is not visible.
    5.1
    Copy works find and does not include line numbers, but the text is indented.
    When pasting text into a rich text enabled editor window, it includes line numbers.
    5.2
    Code in syntax highlighting does not copy blank lines, but copies line numbers.
    6.1
    Only parts of a code segment can be copied, but not the complete code segment. Copy and paste always copies an additional line that was actually not selected.
    6.3
    Copy and paste only copies the code but not syntax highlighting, which can however be can be re-applied.
    8.1
    Applying syntax highlighting now applies a font that is suitable for displaying code.
    However, it is not possible to change the font, if necessary, or apply color or bold or highlighting. Color can be applied, which looks like double-vision, but anyway is removed when posting.
    10.1
    Not working reliably. Sometimes the last line selected is not changed, or only the first line changes.
    11.1
    Sometimes fonts are not displayed properly, for instance, the text insertion point may show Arial, but the text is Courier. There is no clear pattern when this happens or what triggers the problem.
    11.3
    The text insertion point or selected text always reports the font name "font family", regardless of the font applied.
    15.1
    Ctrl-z aborting editor functions under Firefox on Mac OS X. However, Cmd-z, which is standard, works properly. This problem does not affect Safari.
    Issue
    Steps to reproduce
    Workaround
    1
    Copy a couple or more lines of text from a discussion window and paste it into any application or document on your host system. For instance:
    The following may produce double line spacing:
    If there are two or more ways to do something, and one of those
    ways can result in a catastrophe, then someone will do it.
    The following should work correctly:
    If there is a possibility of several things going wrong, the one that will
    cause the most damage will be the first one to go wrong
    Use Shift-Return instead of Return to terminate the end of lines when creating text.
    Use a different browser to perform cut and paste operations, such as Apple Safari or Google Chrome.
    2
    Paste some text code into the forum editor window. Select the code and choose Syntax Highlighting:Plain from the editor toolbar (>>). Close and re-edit the thread. It is not possible to place the insertion point below the block of code in order to add any additional lines of code or to add any normal text. For instance:
    mknod compress_pipe p
    mknod export_pipe p
    chmod +rw export_pipe compress_pipe
    nohup split -b 8192m < export_pipe &
    nohup gzip < compress_pipe > export_pipe &
    exp system/passwd full=y direct=y consistent=y compress=n \
    buffer=10485760 file=compress_pipe
    It is possible to insert additional code or text below Syntax Highlighting, provided the frame it is not the end, as shown in issue 7.
    Add any line of text at the end of your code before applying Syntax Highlighting to the lines above.
    Adding code within the frame of Syntax Highlighting works in Safari and Google Chrome.
    3
    Re-edit a post with Syntax Highlighting. It is not possible to properly select any lines of code. An additional empty code line is added and the focus is shifted. The selection mask does not match the actual text. It is pretty much impossible to re-edit Syntax Highlighting.
    Screenshot: http://img24.imageshack.us/img24/6121/viun.jpg
    Use Safari or Google Chrome when to re-edit text or code under Syntax Highlighting.
    4
    Every subsequent edit of a post with Syntax Highlighting adds an empty blank line to the code block with an incremented line number. The resulting empty lines (07, 08) shown in the screenshot cannot be selected or removed unless there is text below the code frame as shown in issue 7. Screenshot: http://img809.imageshack.us/img809/5514/cxkd.jpg
    Removing of empty lines woks in Safari and Google Chrome.
    5
    When browsing code with Syntax Highlighting, it is not possible to select the code without the line numbers. Screenshot: http://img835.imageshack.us/img835/6626/j7n7.jpg
    Select and copy each line separately. Or use Firefox or Google Chrome, but note issue in Remark 5.
    6
    When editing, it is possible to copy and paste lines under Syntax Highlighting when selecting the lines, but not when selecting the complete Syntax Highlighting frame.
    Carefully select text without the Syntax Highlighting frame boundaries.
    7
    Empty lines and white space (identation) in Syntax Highlighting are suppressed when browsing, although they exist in the actual post. For instance:
    mknod compress_pipe p
       mknod export_pipe p
    Screenshot when editing the above code:
    http://img401.imageshack.us/img401/673/kmy4.jpg
    8
    Syntax Highlighting changes the font to Arial and it is not possible to apply something more suitable for the displaying of code, such as fixed-width Courier New.
    mknod compress_pipe p
    Arial: 1l0OI
    Courier New: 1l0OI
    Arial: 1l0OI
    Courier New: 1l0OI
    9
    It is not possible to paste any text into the editor window.
    Use a different web browser or downgrade to IE 10.
    Or enable F12 Developer Tools from the Tools menu. Press Ctrl-8
    Change the default document mode from Edge to IE 10. Select Leave this page.
    10
    Create a new thread and type several lines of text. Then select select several lines of text and choose a font, e.g. Courier New. Not all selected lines are changed and only a couple of lines remain highlighted. For instance:
    It is difficult to prove the existence of aliens.
    Photos exist with aliens, but they could be fake.
    On the other hand, photos without aliens could be fake too.
    11
    Select a line of text and change the font to Courier New. Then select the line again and it will show Arial. Change the font to Courier New and the text will change back to Arial.
    12
    Copy a URL and paste it into the editor window. The URL will be shown as a hyperlink using blue text. It is not possible to continue with normal writing without changing the text of the link. The text insertion point is captured inside the text of the link when trying to click below the link.
    After pasting the URL, use the arrow key or mouse to move the cursor to the end of the link, then press RETURN and start writing normally. You can than move the cursor to the beginning of the line and use BACKSPACE to move the text up, after the link.
    13
    When replying to a thread and pressing the Quote Previous Message button and then clicking inside the quoted text, for instance, to remove some of the content, it is sometimes no longer possible to move the text insertion point outside of the quoted text back to the normal editing area.
    When this happens it helps to switch to HTML and then switch back to the Full Editor.
    14
    While writing normal text in the editor, it sometimes becomes impossible to edit a line of text. When clicking on any text to move the text insertion point, it selects the complete paragraph instead. http://imagizer.imageshack.us/v2/800x600q90/585/d0v5.jpg. When pressing the "Post Message" button, a dialog appears to "Stay" or "Leave" the page.
    Apparently the editor adds HTML label tags for no apparent reason, which can be seen when switching the editor to HTML mode. http://imagizer.imageshack.us/v2/800x600q90/199/1r5a.jpg
    15
    Copy some text into the editor window. Select the text and choose Syntax Highlighting form the >> insert toolbar. Undo using Ctrl-z. It is no longer possible to use any of the >> insert functions. After that it is also not possible to post the message, resulting in an unexpected error and the content is lost.
    16
    Syntax Highlighting shows several <span> at the beginning and end of the Syntax Highlighting block after posting. This affects old and new posts.
    17
    When changing the width of a table column, entering the 2nd number gets punched into the cell content instead.
    After entering the first number, click in the entry field again to enter the 2nd number.
    18
    19
    Automatic insertion of links to support.oracle.com contains more info, including responses from Oracle staff.
    20
    Change the width of browser window until the editor toolbar appears. It will then stay on top when scrolling through pages.
    21
    Select Syntax Highlighting, Plain from the >> insert menu, then copy and past several lines of text (code) into it. Or, copy and paste the text, then mark the text with the mouse and select SH from the insert menu. Many times, the insertion point is not reflecting it's actual position when you click inside the text. Very often it is also not possible to position the insertion point to the end or beginning of a line using the left and right arrow keys; the insertion point jumps to the next line, even though the end of the line has not been reached.
    For instance:
    The text insertion point [|] is showing up between the words "point" and "is", but when pressing the delete key or entering text, it affects a different area.
    22
    The following is a picture with text and Syntax Highlighting.
    In tables, pressing the delete key will remove or rearrange the hover-up window.
    23
    The original or initial post of a thread is shown with a grey background when browsing. Depending on the web browser application, this background is also copied when doing a copy and paste of the text, provided the target window supports rich text editing.
    Change the target editor window to plain text.
    24
    After resizing a pasted image to the same size than the original, the quality is much worse. The following shows a screenshot of the original and copied image:
    When resizing a picture by moving the image end-points, the editor does no longer show the current picture dimensions (pixel x pixel) as it did in Jive 5. Also when copying a picture between documents, the picture is enlarged and requires resizing.
    25
    Copy and paste content from /etc/oratab, for example:
    The same also happens when pasting the text into a Syntax Highlighting field.
    It is often necessary to use undo (ctrl-z, cmd-z) to get rid of the mess.
    26
    Please see below screenshot:
    27
    Message was edited by: Dude!

    moniquevdb_oracle wrote:
    Holy.... wow, this is helpful, thank you so much for kicking this off, Dude!
    BluShadow I know you are in favor of reenabling code formatting and ditching the Syntax Highlighter altogether. I've also heard that users would prefer the advanced editor to open by default. Anything else on the wishlist?
    correction, I would certainly be in favour (favor to you ) of reenabling code tags, mainly because I work quicker by copy/paste and by keyboard than by having to click through a load of buttons (that currently don't do what they should).  I've not said that syntax highlighting should be ditched altogether, and I'd certainly be in favour of it being there, just so long as it provided a decent formatting that was appropriate, so code actually looked like code, and the ability for people to copy/paste the code out of the forum to their own environment wasn't corrupted with double line spacing (as dude has already mentioned) and the addition of the line numbers it puts in (the line numbers are useful for reference on the forum, e.g. when we want to say "you're problem is on line X", but not good when you copy/paste code out to your environment and have to spend ages deleting them all to get the code to do anything).  If it's too difficult, then removing the line numbers from the code formatting would be preferable to having them there and not being able to copy the code out without them.
    I agree with dude that it would be good to be able to highlight portions of code with bold or colours, which the old forum didn't allow, but this one does, so it's really a combination of old and new that's needed.  And as dude highlights, the supressing of blank lines is a pain as it can make the posting of multiple code commands become all compressed and difficult to read, and is not representative of what we have in our interfaces such as SQL*Plus etc.
    Basic example:
    Copy paste from my SQL*Plus window into the forum (and me applying courier new and quoting it)...
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL>
    but in my SQL*Plus window it looks like.
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL>
    Obviously that's a basic example; in reality we can be providing a solution to someone, explaining multiple steps and commands to demonstrate their issue and the solution, and having to go back through the code once we've pasted it adding back in all the line spacings, is a real pain and time consuming.
    Certainly, having the advanced editor options available immediately for replying would be better than having to switch to it manually, especially as most people using these forums are going to want to paste code in (what with it being a technical forum and not really a social forum), and the basic editor just doesn't allow for any suitable code formatting (unless the person is mad enough to switch to HTML mode).

Maybe you are looking for