Uploaded image for project: 'LaTeX'
  1. LaTeX
  2. LATEX-5

Cannot use xwiki syntax in overridden templates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0
    • Syntax
    • None
    • Unknown

    Description

      For example try overriding "latex/TableCellBlock" with the following content:

      ##!source.syntax=xwiki/2.1
      {{groovy}}
      // If we're not on the last cell of the row then end with a "&"
      def currentCellBlock = block
      print "\textit{${processor.process(block.getChildren())}}"
      if (currentCellBlock.getNextSibling().getClass().getSimpleName().equals('TableCellBlock') || currentCellBlock.getNextSibling().getClass().getSimpleName().equals('TableHeadCellBlock')) {
        print " & "
      }
      {{/groovy}}
      

      The issue is that the renderer is not setting the right target syntax.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: