creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1545780 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
Date Tue, 26 Nov 2013 18:53:55 GMT
Author: dennisl
Date: Tue Nov 26 18:53:54 2013
New Revision: 1545780

URL: http://svn.apache.org/r1545780
Log:
[RAT-154] Indentation of the license header should be decided per family.

Modified:
    creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java

Modified: creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java?rev=1545780&r1=1545779&r2=1545780&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
(original)
+++ creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
Tue Nov 26 18:53:54 2013
@@ -426,21 +426,18 @@ public abstract class AbstractLicenceApp
      * @return not null
      */
     protected String getLine(int type, String content) {
-        if (content != null && content.length() > 0) {
-            content = " " + content;
-        }
         if (isFamilyC(type)) {
-            return " *" + content + LINE_SEP;
+            return " * " + content + LINE_SEP;
         } else if (isFamilySGML(type)) {
             return content + LINE_SEP;
         } else if (isFamilyAPT(type)) {
-            return "~~" + content + LINE_SEP;
+            return "~~ " + content + LINE_SEP;
         } else if (isFamilySH(type)) {
-            return "#" + content + LINE_SEP;
+            return "# " + content + LINE_SEP;
         } else if (isFamilyBAT(type)) {
-            return "rem" + content + LINE_SEP;
+            return "rem " + content + LINE_SEP;
         } else if (isFamilyVelocity(type)) {
-            return "##" + content + LINE_SEP;
+            return "## " + content + LINE_SEP;
         }
         return "";
     }



Mime
View raw message