You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2004/06/16 23:29:33 UTC

cvs commit: xml-fop/src/java/org/apache/fop/render/pdf PDFRenderer.java

jeremias    2004/06/16 14:29:33

  Modified:    src/java/org/apache/fop/render/pdf PDFRenderer.java
  Log:
  Removed illegal tab character
  Removed some of the checkstyle warnings while at it.
  
  Revision  Changes    Path
  1.44      +4 -4      xml-fop/src/java/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- PDFRenderer.java	12 May 2004 23:19:53 -0000	1.43
  +++ PDFRenderer.java	16 Jun 2004 21:29:33 -0000	1.44
  @@ -941,8 +941,8 @@
           int bl = currentBPPosition + bpMarginOffset + text.getOffset();
   
   /*        System.out.println("Text = " + text.getTextArea() +
  -			"; text width: " + text.getWidth() +
  -        	"; BlockIP Position: " + currentBlockIPPosition +
  +            "; text width: " + text.getWidth() +
  +            "; BlockIP Position: " + currentBlockIPPosition +
               "; currentBPPosition: " + currentBPPosition +
               "; offset: " + text.getOffset());
   */
  @@ -954,14 +954,14 @@
               closeText();
   
               pdf.append("1 0 0 -1 " + (rx / 1000f) + " " + (bl / 1000f) + " Tm "
  -                       + (text.getTextSpaceAdjust()/1000f) + " Tw [" + startText);
  +                       + (text.getTextSpaceAdjust() / 1000f) + " Tw [" + startText);
               prevWordY = bl;
               textOpen = true;
           } else {
                   closeText();
   
                   pdf.append("1 0 0 -1 " + (rx / 1000f) + " " + (bl / 1000f) + " Tm "
  -                           + (text.getTextSpaceAdjust()/1000f) + " Tw [" + startText);
  +                           + (text.getTextSpaceAdjust() / 1000f) + " Tw [" + startText);
                   textOpen = true;
           }
           prevWordWidth = text.getWidth();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org


Re: cvs commit: xml-fop/src/java/org/apache/fop/render/pdf PDFRenderer.java

Posted by Jeremias Maerki <de...@greenmail.ch>.
I see. So please upgrade the files to the lastest version and we others
shall upgrade our checkstyle plugins.

On 17.06.2004 12:10:52 Chris Bowditch wrote:
> Jeremias Maerki wrote:
> 
> > Chris, please check the settings of your IDE not to allow tab characters.
> > Thanks!
> 
> Hi Jeremias,
> 
> I cant simply turn off Tabs as I need them for my paid work! I would like to 
> be able to run checkstyle to check for this sort of mistake, but have run into 
> some problems with it.
> 
> It seems our config files were originally written for 2.4, with a 
> checkstyle-3.1.1-Head file being provided in CVS for 3.x versions. However, I 
> could only find 3.4 available for download anywhere, and the config file 
> layout seems to have changed again since 3.1.
> 
> If no one knows where I can download either 2.4 or 3.1, then I will have to 
> read up and find a way to convert our config file to the new XML format.



Jeremias Maerki


Re: cvs commit: xml-fop/src/java/org/apache/fop/render/pdf PDFRenderer.java

Posted by Chris Bowditch <bo...@hotmail.com>.
Jeremias Maerki wrote:

> Chris, please check the settings of your IDE not to allow tab characters.
> Thanks!

Hi Jeremias,

I cant simply turn off Tabs as I need them for my paid work! I would like to 
be able to run checkstyle to check for this sort of mistake, but have run into 
some problems with it.

It seems our config files were originally written for 2.4, with a 
checkstyle-3.1.1-Head file being provided in CVS for 3.x versions. However, I 
could only find 3.4 available for download anywhere, and the config file 
layout seems to have changed again since 3.1.

If no one knows where I can download either 2.4 or 3.1, then I will have to 
read up and find a way to convert our config file to the new XML format.

Chris



Re: cvs commit: xml-fop/src/java/org/apache/fop/render/pdf PDFRenderer.java

Posted by Jeremias Maerki <de...@greenmail.ch>.
Chris, please check the settings of your IDE not to allow tab characters.
Thanks!

On 16.06.2004 23:29:33 jeremias wrote:
> jeremias    2004/06/16 14:29:33
> 
>   Modified:    src/java/org/apache/fop/render/pdf PDFRenderer.java
>   Log:
>   Removed illegal tab character
>   Removed some of the checkstyle warnings while at it.


Jeremias Maerki