You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2025/01/02 17:14:00 UTC

[jira] [Comment Edited] (DOXIA-772) AbstractSink.sectionTitle() calls Sink.sectionTitle(...) method with invalid level argument

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

Konrad Windszus edited comment on DOXIA-772 at 1/2/25 5:13 PM:
---------------------------------------------------------------

[~michael-o] Seems that at least the XHTML sink always ignored level < 1 (i.e. that method always was a noop there. Not sure about the other sinks though. WDYT?


was (Author: kwin):
[~michael-o] This is a regression of DOXIA-619. In fact the Sink API always supported h1, but only via {{Sink.sectionTitle()}}. Since changing the semantics of {{Sink.sectionTitleX(....)}} now again will lead to lots of backwards compatibility issues I propose to make {{Sink.sectionTitle()}} behave the same as {{Sink.sectionTitle1()}}. WDYT?

> AbstractSink.sectionTitle() calls Sink.sectionTitle(...) method with invalid level argument
> -------------------------------------------------------------------------------------------
>
>                 Key: DOXIA-772
>                 URL: https://issues.apache.org/jira/browse/DOXIA-772
>             Project: Maven Doxia
>          Issue Type: Bug
>            Reporter: Konrad Windszus
>            Priority: Major
>
> According to https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#sectionTitle-int-org.apache.maven.doxia.sink.SinkEventAttributes- the {{level}} argument must be between 1 and 6. However {{AbstractSink.sectionTitle()}} calls it with {{level}} being 0 (https://github.com/apache/maven-doxia/blob/ef20da287e49dbbe4ac92a82e7593b3c897ce126/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java#L84)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)