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"
}
]
}
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"
}
]
}
- duplicates
-
JDK-8108288 More than one newline delimiter (\n) in javafx.scene.text.Text.content
-
- Closed
-
- relates to
-
JDK-8107332 When The First Line Of A Text Is Empty,IllegalArgumentException
-
- Closed
-
-
JDK-8099426 Add multi-line (single style) support to TextBox
-
- Resolved
-