maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-reporting-api/src/main/java/org/apache/maven/reporting AbstractMavenReportRenderer.java
Date Tue, 22 Feb 2005 03:37:00 GMT
brett       2005/02/21 19:37:00

  Modified:    maven-reporting-api/src/main/java/org/apache/maven/reporting
                        AbstractMavenReportRenderer.java
  Log:
  basic mailing list report
  
  Revision  Changes    Path
  1.2       +19 -2     maven-components/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java
  
  Index: AbstractMavenReportRenderer.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractMavenReportRenderer.java	22 Feb 2005 01:48:27 -0000	1.1
  +++ AbstractMavenReportRenderer.java	22 Feb 2005 03:37:00 -0000	1.2
  @@ -21,6 +21,7 @@
   /**
    * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
    * @version $Id$
  + * @todo Later it may be appropriate to create something like a VelocityMavenReportRenderer
that could take a velocity template and pipe that through Doxia rather than coding them up
like this.
    */
   public abstract class AbstractMavenReportRenderer
   {
  @@ -142,7 +143,14 @@
       {
           sink.tableCell();
   
  -        sink.text( text );
  +        if ( text != null )
  +        {
  +            sink.text( text );
  +        }
  +        else
  +        {
  +            sink.nonBreakingSpace();
  +        }
   
           sink.tableCell_();
       }
  @@ -181,4 +189,13 @@
           sink.text( caption );
           sink.tableCaption_();
       }
  +
  +    protected void paragraph( String paragraph )
  +    {
  +        sink.paragraph();
  +
  +        sink.text( paragraph );
  +
  +        sink.paragraph_();
  +    }
   }
  
  
  

Mime
View raw message