Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table cell formatting for plain text outputs from table

Green_ Desmond
Contributor
January 26, 2024

I've asked a similar question before, but perhaps this one is just a little different. I hope there is a good answer or workaround.

I need to use the plain text output format to gather various (numerous) items of data via table transform macros. Since this is from various, diverse sources and I need the data presented concisely, the best approach is to present it within tables. When I do so, the horizontal and vertical alignment is off and it immediately tends to look very messy!

For example, here's a simple single row example. The text is just unformatted paragraph text and the numbers are outputs from table transformer macros. It already is misaligned and looks messy, and only looks far worse as further rows and columns of similar are added.

Table transformer text output 2.JPG

The way I'm putting such content together is as follows:

Table transformer text output 1.JPG

I don't want to concatenate the label and the data. The variable data elements are typically reusable pieces, often contained as Table Excerpt elements to easily be repeated in other pages, and sometimes pivoted across columns or rows in other tables.

Is there anything clever (and easy) I can do to align plain text outputs from table transformers within table cells, both horizontally and vertically?

1 answer

1 accepted

1 vote
Answer accepted
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 26, 2024

Hi @Green_ Desmond ,

Seems that we'll have a beautiful solution for your case in one of the next releases. I've marked your question and will keep you updated.

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2024

Hi @Green_ Desmond ,

Please update the app to the 10.4.0 version if you are on Data Center/Server and for Cloud the updates will be downloaded automatically.

After the upgrade, you'll see the new "Stylesheet" tab in the Table Transformer macro.

Fri 16-1.png

Fri 16-2.png

.table-wrap {
  margin-top: 0;
  margin-bottom: -10px;
}

Now your table will look neat in a published state.

Fri 16-3.png

Green_ Desmond
Contributor
February 1, 2024

That's fabulous, only I can never be sure when my organisation will take that later version of the product!

 

Meanwhile, is there anything I can do to inline that CSS and effect the same, ideally at a page level, or at least at the table level? Maybe by editing the page HTML with some acceptable inline CSS?

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2024

You may use the standard HTML-macro if is allowed for your Confluence instance:

<style> .table-joiner .wrapper .table-wrap { margin-top: 0; margin-bottom: -10px; } </style>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events