Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8107379

Blank And Empty Line Of Text Are Rendered Differently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • None
    • javafx
    • None
    • Ubuntu 8.0.4 AMD64, sun-java6 update 12,JavaFX SDK 1.1.0

      The following two Text are rendered differently:
      The first Text contrains some empty lines, but all these lines are not rendered.
      The second Text contrains some blank but not empty lines, all these empty lines(except the first line) are rendered.

      See http://javafx-jira.kenai.com/browse/RT-3550

      Scene {
         content: [
            Text {
               content: "\t \nLine one\nLine two\n\n\n\n\nLine three\nLine four\n\n\n\n"
            }
         ]
      }

      Scene {
         content: [
            Text {
               content: "\t \nLine one\nLine two\n \n \n \n \nLine three\nLine four\n \n \n \n"
            }
         ]
      }

            naoto Naoto Sato
            goodsforyjfx goodsforyou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: