[ 
https://issues.apache.org/jira/browse/MSHARED-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14648989#comment-14648989
 ] 

Michael Osipov commented on MSHARED-390:
----------------------------------------

You may pick any report from MPIR where the configured language is non-Latin. 
You end up with dead anchors. E.g., Chinese or Russian.

The best approach would probably be to URI encode the anchor name just like 
Wikipedia does. Look here: 
https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D1%83%D1%82%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%D1%8F_%D0%B0%D0%BD%D1%82%D0%B5%D0%BD%D0%BD%D0%B0#.D0.9E.D1.84.D1.81.D0.B5.D1.82.D0.BD.D0.B0.D1.8F_.D0.B0.D0.BD.D1.82.D0.B5.D0.BD.D0.BD.D0.B0_.28.D0.B0.D1.81.D0.B8.D0.BC.D0.BC.D0.B5.D1.82.D1.80.D0.B8.D1.87.D0.BD.D0.B0.D1.8F.29

The problematic call is {{org.apache.maven.doxia.util.HtmlTools#encodeId}} 
where {{true}} is passed to the {{DoxiaUtils}}. It shouldn't. If we would pass 
{{false}} it would still be incorrect because the escape mechanism uses a {{%}} 
sign which is illegal. See 
[http://www.w3.org/TR/html4/types.html#type-name|here] for valid chars.

> Add startSection method AbstractMavenReportRenderer where anchor != name
> ------------------------------------------------------------------------
>
>                 Key: MSHARED-390
>                 URL: https://issues.apache.org/jira/browse/MSHARED-390
>             Project: Maven Shared Components
>          Issue Type: Improvement
>          Components: maven-reporting-impl
>    Affects Versions: maven-reporting-impl-2.3
>            Reporter: Michael Osipov
>
> Sometimes it is necessary to provide a custom anchor name instead of using 
> the text as an anchor. This could be a synthetic achnor or a 
> language-independent one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to