Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,13 @@ private String getLinkedAndFormattedText(final String text) {
localText = localText.substring(0, start) + title + localText.substring(end);
m = p3.matcher(localText);
}
// replaces two consecutive spaces with two non-breaking spaces to fix #140
// assume that consecutive spaces do not conflict with previous replacements
// using CSS "white-space: pre-wrap;" does not work within Swing, it's simply ignored.
// See https://docs.oracle.com/javase/8/docs/api/javax/swing/text/html/CSS.html
// putting text in pre tags is not an option, because this suppresses wrap.
localText = localText.replaceAll(" ", "  ");
// add paragraph for each line to preserve line breaks
StringBuilder sb = new StringBuilder();
for (final String p : localText.split("\n")) {
sb.append("<p>");
Expand Down
2 changes: 1 addition & 1 deletion sqldev/src/test/resources/test.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# properties to connect to Oracle Database using JDBC thin driver
host=localhost
host=fillmore
port=1521
service=odb.docker

Expand Down