Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13371

Code Macro Rendering and preceeding pagebreaks inside a table's last cell

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Trivial
    • None
    • 4.5-milestone-1
    • None
    • Unknown
    • N/A
    • N/A

    Description

      First of all i don't know if the outgoing point is a feature or bug. In case I don't do a pagebreak in front of the code macro, I get formated lines instead of a block. Please have a look at the screenshot.

      But if i would like to have the boxed version at the end of a table. I have no possibility to do that, because of the pagebreak the content will be outside of the table.

      Pagebreak:
      
      {{code language="java"}}
      
      class HelloWorldApp {
          public static void main(String[] args) {
              System.out.println("Hello World!"); // Display the string.
          }
      }
      {{/code}}
      
      
      No Pagebreak:
      {{code language="java"}}
      class HelloWorldApp {
          public static void main(String[] args) {
              System.out.println("Hello World!"); // Display the string.
          }
      }
      {{/code}}
      
      OK:
      |=Text|=Text and Code
      |Hello World |Text
      {{code language="java"}}
      class HelloWorldApp {
          public static void main(String[] args) {
              System.out.println("Hello World!"); // Display the string.
          }
      }
      {{/code}}
      
      Not OK:
      |=Text|=Text and Code
      |Hello World |Text
      
      {{code language="java"}}
      class HelloWorldApp {
          public static void main(String[] args) {
              System.out.println("Hello World!"); // Display the string.
          }
      }
      {{/code}}
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            jhaimerl Josef Haimerl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: