Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2017-10-10 17:55:04 -0400
committermegumi.telles2017-10-10 17:55:04 -0400
commit70d2d5dd6d60f4e211839063fb38302b50041231 (patch)
tree7350b634029b3cf685d9b2bbe0553484f070f73a
parent5e2d15f861d8773b4b91b6baf6636db22f0ba86d (diff)
downloadorg.eclipse.osee-70d2d5dd6d60f4e211839063fb38302b50041231.tar.gz
org.eclipse.osee-70d2d5dd6d60f4e211839063fb38302b50041231.tar.xz
org.eclipse.osee-70d2d5dd6d60f4e211839063fb38302b50041231.zip
bug: Fix remove extra paragraphs for applic
-rw-r--r--plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/wordupdate/WordMLApplicabilityHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/wordupdate/WordMLApplicabilityHandler.java b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/wordupdate/WordMLApplicabilityHandler.java
index 3401601150..6b2a374965 100644
--- a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/wordupdate/WordMLApplicabilityHandler.java
+++ b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/wordupdate/WordMLApplicabilityHandler.java
@@ -51,7 +51,7 @@ public class WordMLApplicabilityHandler {
private static String SCRIPT_ENGINE_NAME = "JavaScript";
- private Set<String> validConfigurations;
+ private final Set<String> validConfigurations;
private Map<String, List<String>> viewApplicabilitiesMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
private final String configurationToView;
private final Stack<ApplicabilityBlock> applicBlocks;
@@ -177,7 +177,7 @@ public class WordMLApplicabilityHandler {
// check this doesn't contain feature/config tags
String beginningText = fullWordMl.substring(paragraphStartIndex, startInsertIndex);
- if (toInsert.isEmpty() && paragraphStartIndex >= 0 && !beginningText.matches(
+ if (toInsert.isEmpty() && paragraphStartIndex > 0 && !beginningText.matches(
"(?i).*?(" + WordCoreUtil.BEGINFEATURE + "|" + WordCoreUtil.BEGINCONFIG + "|" + WordCoreUtil.ENDCONFIG + "|" + WordCoreUtil.ENDFEATURE + ").*?")) {
int endInsertIndex = applicabilityBlock.getEndInsertIndex();
String findParagraphEnd = fullWordMl.substring(endInsertIndex);

Back to the top