Skip to content

DefineTextformat (without alignment) overrides td alignment #681

@Demostenus

Description

@Demostenus

Hello,

I noticed a strange behaviour:
If I define a text format without alignment, and I am interested only in other attributes, ex: hyphenate.
The text format will have a default alignment that overrides any other coming from a parent element.

Below you can see an example I modified to illustrate this.

I define the textformat like this:

<DefineTextformat name="nohyphen" hyphenate="no"/>

I use it here:
<Td align="center" border-right="1pt" border-right-color="white"><Paragraph textformat="nohyphen"><Value select="$classname"></Value></Paragraph></Td>

So my expectation here was the text to be center aligned because it has Td align="center" and the textformat applied does not mention any alignment.
But it doesn't work, the text is either left aligned or justified (default for DefineTextformat)?

data.xml
layout.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions