I'm not convinced this is a good idea: MPIR is fixed now, but this hack will 
prevent anybody to output \u0092 when it is the real character they want.

Regards,

Hervé

Le samedi 05 septembre 2009, vsive...@apache.org a écrit :
> Author: vsiveton
> Date: Sat Sep  5 12:46:15 2009
> New Revision: 811631
>
> URL: http://svn.apache.org/viewvc?rev=811631&view=rev
> Log:
> o workaround to take care of quote (see MPIR-136)
>
> Modified:
>    
> maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins
>/pdf/PdfMojo.java
>
> Modified:
> maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins
>/pdf/PdfMojo.java URL:
> http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/main/
>java/org/apache/maven/plugins/pdf/PdfMojo.java?rev=811631&r1=811630&r2=81163
>1&view=diff
> ===========================================================================
>=== ---
> maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins
>/pdf/PdfMojo.java (original) +++
> maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins
>/pdf/PdfMojo.java Sat Sep  5 12:46:15 2009 @@ -1741,7 +1741,7 @@
>      //
> ----------------------------------------------------------------------
>
>      /**
> -     * A sink to generate Maven report as xdoc.
> +     * A sink to generate a Maven report as xdoc with some known
> workarounds. *
>       * @since 1.1
>       */
> @@ -1761,6 +1761,13 @@
>              // workaround to fix reporting-impl issue, no call of
> tableRows( justification, grid ) writeStartTag( HtmlMarkup.TABLE );
>          }
> +
> +        /** {...@inheritdoc} */
> +        public void text( String text )
> +        {
> +            // workaround to fix quotes (MPIR-136)
> +            super.write( StringUtils.replace( text, "\u0092", "'" ) );
> +        }
>      }
>
>      /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to