From 66ed20d3decba33ca11625c16ef582c61fbdffee Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 30 Aug 2007 13:32:56 +0000
Subject: [PATCH] unwrapped message descriptor javadoc to support textural search of messages in descriptors irrespective of line breaks

---
 opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java b/opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java
index 05e2986..6993107 100644
--- a/opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java
+++ b/opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java
@@ -303,14 +303,18 @@
     }
 
     /**
-     * Gets the comments that will appear above the messages declaration
+     * Gets the javadoc comments that will appear above the messages declaration
      * in the messages file.
      * @return String comment
      */
     public String getComment() {
       StringBuilder sb = new StringBuilder();
       sb.append(indent(1)).append("/**").append(EOL);
-      String ws = wrapText(formatString, 70);
+
+      // Unwrapped so that you can search through the descriptor
+      // file for a message and not have to worry about line breaks
+      String ws = formatString; // wrapText(formatString, 70);
+
       String[] sa = ws.split(EOL);
       for (String s : sa) {
         sb.append(indent(1)).append(" * ").append(s).append(EOL);

--
Gitblit v1.10.0