javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-169

Code copied and pasted into Frame does not show line breaks in the HTML output

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.1
    • Component/s: doc
    • Labels:
      None

      Description

      When you sometimes paste code from an editor into Frame, it looks good in the Frame view and the PDF, but the line breaks are not really new lines, and they do not show up correctly on the HTML output.

      We have to ensure that each line in the example has its own ProgramListing structure element.

      Examples of affected files:

      servlets015.htm
      websocket011.htm
      batch-processing008.htm

        Activity

        Hide
        rcervera added a comment -

        Fixed in the doc sources.

        Show
        rcervera added a comment - Fixed in the doc sources.
        Hide
        Ian Evans added a comment -

        Which code editor did you paste in from? I've pasted from NetBeans, TextPad, and emacs with no apparent problems.

        Show
        Ian Evans added a comment - Which code editor did you paste in from? I've pasted from NetBeans, TextPad, and emacs with no apparent problems.
        Hide
        rcervera added a comment -

        I always pasted from NetBeans, and it worked fine 95% of the time. There were a few cases where it did not work properly. The line break characters appear on FrameMaker but several lines where grouped together in the same ProgramListing.

        Show
        rcervera added a comment - I always pasted from NetBeans, and it worked fine 95% of the time. There were a few cases where it did not work properly. The line break characters appear on FrameMaker but several lines where grouped together in the same ProgramListing.
        Hide
        Kim Haase added a comment -

        Ricardo's right. You have to be really, really careful how you paste from NB. I think pasting into a new, empty programlisting element works okay, but trying to overwrite existing code can produce strange results. You really have to look not only at the Frame page (where the newlines look fine) but also at the structure to make sure the new code isn't all in one programlisting element.

        Show
        Kim Haase added a comment - Ricardo's right. You have to be really, really careful how you paste from NB. I think pasting into a new, empty programlisting element works okay, but trying to overwrite existing code can produce strange results. You really have to look not only at the Frame page (where the newlines look fine) but also at the structure to make sure the new code isn't all in one programlisting element.

          People

          • Assignee:
            rcervera
            Reporter:
            rcervera
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: