• Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • None
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      It would be nice to put line breaks in the table format, but these line breaks wouldn't show up in the rendered page. Perhaps this can be done with the following syntax: The last character on the line is a single \ and there are non-special chars directly before it. For example

      |cell 1,1| cell 2,1\
      |cell 3,1|
      |cell 1,2| cell 2,2\
      |cell 3,2|
      

      This would be rendered as a 2 row 3 column table. Putting line breaks in the table definition is nice if I'm trying to get the definition cells to line up.

      I suppose this is a general need for all of the syntax. Because line breaks mean something to the renderer would be nice to be able to escape them.

            [CONFSERVER-1355] line breaks in table syntax

            hello, did you figure out how to make a table in one line?

            Shyn Samigullin added a comment - hello, did you figure out how to make a table in one line?

            Answering simonpradier_11661070714 question in case of scriptrunner rest endpoint and passing this with html request it is %0A 

            Łukasz Sielski priv added a comment - Answering  simonpradier_11661070714 question in case of scriptrunner rest endpoint and passing this with html request it is %0A 

            Bruce Reed added a comment -

            I know this is an old ticket, but things may have changed.

            Using Jira v8.4.1 it seems the trailing backslash is no longer needed. On a guess - if the table row is not finished (the cells don't match the header), then next line is used to finish the row.

            So this:

            |cell 1,1| cell 2,1
            line 2 |cell 3,1|
            |cell 1,2| cell 2,2
            line 2 |cell 3,2|

            Looks like this:

            cell 1,1 cell 2,1
            line 2
            cell 3,1
            cell 1,2 cell 2,2
            line 2
            cell 3,2

            Bruce Reed added a comment - I know this is an old ticket, but things may have changed. Using Jira v8.4.1 it seems the trailing backslash is no longer needed. On a guess - if the table row is not finished (the cells don't match the header), then next line is used to finish the row. So this: |cell 1,1| cell 2,1 line 2 |cell 3,1| |cell 1,2| cell 2,2 line 2 |cell 3,2| Looks like this: cell 1,1 cell 2,1 line 2 cell 3,1 cell 1,2 cell 2,2 line 2 cell 3,2

            Simon Pradier added a comment - - edited

            Hello i was wondering is it possible to create a table in a single line like so

             ||data||data \\ |data|data 
            data data
            data data

            Im not satisfied with the above result
            I would like to have a table with 4 cells but 2 rows not one without using a line break.
            I want my entire code on a single line is this possible?

            Simon Pradier added a comment - - edited Hello i was wondering is it possible to create a table in a single line like so ||data||data \\ |data|data data data data data Im not satisfied with the above result I would like to have a table with 4 cells but 2 rows not one without using a line break. I want my entire code on a single line is this possible?

            Just FYI,
            works:

            |cell 1,1| cell 2,1\\
            line 2 |cell 3,1|
            |cell 1,2| cell 2,2\\
            line 2 |cell 3,2|
            
            cell 1,1 cell 2,1
            line 2
            cell 3,1
            cell 1,2 cell 2,2
            line 2
            cell 3,2

            Reginald Eli Deinla added a comment - Just FYI, works: |cell 1,1| cell 2,1\\ line 2 |cell 3,1| |cell 1,2| cell 2,2\\ line 2 |cell 3,2| cell 1,1 cell 2,1 line 2 cell 3,1 cell 1,2 cell 2,2 line 2 cell 3,2

            Turns out this actually works now:

            |cell 1,1| cell 2,1\
            line 2 |cell 3,1|
            |cell 1,2| cell 2,2\
            line 2 |cell 3,2|
            
            cell 1,1 cell 2,1\
            line 2
            cell 3,1
            cell 1,2 cell 2,2\
            line 2
            cell 3,2

            Irritating that the \ shows up at the end of the line, though.

            Daniel Parks added a comment - Turns out this actually works now: |cell 1,1| cell 2,1\ line 2 |cell 3,1| |cell 1,2| cell 2,2\ line 2 |cell 3,2| cell 1,1 cell 2,1\ line 2 cell 3,1 cell 1,2 cell 2,2\ line 2 cell 3,2 Irritating that the \ shows up at the end of the line, though.

            This is four years old, but I run into it all the time.

            Daniel Parks added a comment - This is four years old, but I run into it all the time.

            Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Confluence features that solve problems for the greater customer base. To that end, we aim to keep our issues up-to-date so that they accurately reflect current customer needs. Because there has been no customer activity on this issue in over 5 years, we have marked it as closed. If you still feel that this issue is still relevant to your needs, please feel free to reopen it.

            Sherif

            Sherif Mansour added a comment - Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Confluence features that solve problems for the greater customer base. To that end, we aim to keep our issues up-to-date so that they accurately reflect current customer needs. Because there has been no customer activity on this issue in over 5 years, we have marked it as closed. If you still feel that this issue is still relevant to your needs, please feel free to reopen it. Sherif

            James,

            We're collecting user-contributed macros, plugins and scripts in the Confluence Extensions space on http://confluence.atlassian.com/. Once you've finished the macro, it would be great if you could upload it.

            http://confluence.atlassian.com/display/CONFEXT

            Charles

            Charles Miller (Inactive) added a comment - James, We're collecting user-contributed macros, plugins and scripts in the Confluence Extensions space on http://confluence.atlassian.com/ . Once you've finished the macro, it would be great if you could upload it. http://confluence.atlassian.com/display/CONFEXT Charles

            I have written a 'bigtable' macro which I use for large tables.

            It supports the definition of a table in which the cell content spans many lines.

            Works a bit like

            {bigtable}
            Heading 1
            |
            Heading 2
            ||
            This is
            the content for r2c1
            | width="80%" bgcolor="red"
            This is a wide red cell{bigtable}

            It's possible to use different row/cell breaks and specify per-cell or per-row HTML attributes.

            I've not done a lot of work on polishing it for a release but given the size of the code it wouldn't take long if you are interested.

            James Walker added a comment - I have written a 'bigtable' macro which I use for large tables. It supports the definition of a table in which the cell content spans many lines. Works a bit like {bigtable} Heading 1 | Heading 2 || This is the content for r2c1 | width="80%" bgcolor="red" This is a wide red cell{bigtable} It's possible to use different row/cell breaks and specify per-cell or per-row HTML attributes. I've not done a lot of work on polishing it for a release but given the size of the code it wouldn't take long if you are interested.

              smansour Sherif Mansour
              e59e3a20f01b Scott Cytacki
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: