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

Konrad Windszus edited comment on DOXIA-760 at 11/12/24 6:06 PM:
-----------------------------------------------------------------

[~michael-o] How can one now indicate for a two column table a default 
(whatever that is) alignment for the first column, but aligning the second one 
centrally with 
[Sink.tableRows(...)|https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#tableRows-int:A-boolean-]
 The only constants defined for the first argument array items is 
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_LEFT
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_CENTER
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_RIGHT

Should we introduce a 4th choice named {{JUSTIFY_DEFAULT}} being -1?


was (Author: kwin):
[~michael-o] How can one now indicate for a two column table a default 
(whatever that is) alignment for the first column, but aligning the second one 
centrally with 
[Sink.tableRows(...)|https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#tableRows-int:A-boolean-]
 The only constants defined for the first argument is 
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_LEFT
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_CENTER
# 
https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html#JUSTIFY_RIGHT

Should we introduce a 4th choice named {{JUSTIFY_DEFAULT}} being -1?

> MarkdownSink incorrectly assumes left alignment in tables is the default
> ------------------------------------------------------------------------
>
>                 Key: DOXIA-760
>                 URL: https://issues.apache.org/jira/browse/DOXIA-760
>             Project: Maven Doxia
>          Issue Type: Bug
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> Compare with the discussion at 
> https://issues.apache.org/jira/browse/MSKINS-230?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=17897626#comment-17897626.
> One needs to leverage {{:---}} for left alignment 
> (https://github.github.com/gfm/#tables-extension-) instead of  {{---}} in the 
> delimiter row.



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

Reply via email to