Removes unnecessary whitespace from user assistance
Change-Id: I87aae462d9e2aa50a34c14f0b64c3f5fa916a816
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
index 35bf98f..5ef5b65 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
@@ -219,14 +219,14 @@
return format(next,current);
next+=current;
}
- if (next.isEmpty())
+ if (next.isEmpty())
return null;
return next;
}
private String format(String next,char current)
{
- if (next.isEmpty())
+ if (next.isEmpty())
{
cursor++;
return current+""; //$NON-NLS-1$
diff --git a/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java b/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
index 6e29ee7..825a77d 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
@@ -536,7 +536,7 @@
href = getAttribute(topic, "topic"); //$NON-NLS-1$
}
if (href != null
- && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
href = SearchIndex.getIndexableHref(href);
if (href != null)
hrefs.add(href);
@@ -545,7 +545,7 @@
for (int i = 0; i < subtopics.getLength(); i++) {
Element subtopic = (Element) subtopics.item(i);
href = getAttribute(subtopic, "href"); //$NON-NLS-1$
- if (href != null && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (href != null && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
href = SearchIndex.getIndexableHref(href);
if (href != null)
hrefs.add(href);
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
index 3c2e533..a8d17f8 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
@@ -215,7 +215,7 @@
* @return -1 if the toc is not found
*/
private int findTocContainingTopic(String topic) {
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return -1;
int index = topic.indexOf("/topic/"); //$NON-NLS-1$
@@ -246,7 +246,7 @@
if (index != -1)
topic = topic.substring(0, index);
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return -1;
// try to find in enabled tocs first
@@ -303,7 +303,7 @@
if (index != -1)
topic = topic.substring(0, index);
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return null;
if (selectedToc < 0)