Recent Changes
Recent Changes · Search:
 
Summary
Multi-line table cells are broken
Type
Bug
Raised by
Date opened
Sunday, 12 July 2009
Description
The following wiki content can’t be processed any more into PDF format:
(:table border=1 :)
(:cellnr:)single line
(:cell:)first line\\
second line
(:cell:)first line\\
second line\\
third line
(:tableend:)

This used to work in the earlier versions, but is broken now. Pdflatex aborts with the following error message:

  ! Missing } inserted.
  <inserted text> 
                }
  l.81 first line\\s
                    econd line}&{\small
  ? 
  ! Emergency stop.
  <inserted text> 
                  }
  l.81 first line\\s
                    econd line}&{\small
  No pages of output.
Importance
3
Proposed solution
This arose when we added support for simple cell colspan in advanced tables. This reveals the newline to LATEX and it tries to interpret it as an end of row, and fails. While we work out a patch, the following works and produces the desired result:
(:table border=1 :)
(:cellnr:)single line
(:cell:)
first line\\
second line
(:cell:)
first line\\
second line\\
third line
(:tableend:)
Urgency
3
Status
Closed
Resolution
The fix is to change cookbook/wikipublisher/latex/tables.php line 219 to read:
  if (preg_match('/^[^\n]+\n$/',$contents)) 
    $SimpleColspan = (!strstr($contents, '<newline'));

Note that such cells then cannot span multiple columns.

Fixed in version 2.2.13 released Sunday, 2 August 2009 (also fixes the problem of long simple cells not correctly wrapping).

Date closed
Sunday, 2 August 2009

« 00138 · Edit Form · 00140 »

Page last modified on 02 August 2009 at 11:13 AM