mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
Fix tex2lyx table output.
It is broken since the latest file format update (neither did Uwe run a test after updating the file format, nor did I after undoing my accidental change). The reason it was broken: the bool version of write_attribute() is chosen for "0" instead of the string version, so each table used rotate="true".
This commit is contained in:
parent
1a6c599917
commit
d88f7727e9
@ -1269,10 +1269,11 @@ void handle_tabular(Parser & p, ostream & os, string const & name,
|
||||
|
||||
//cerr << "// output what we have\n";
|
||||
// output what we have
|
||||
string const rotate = "0";
|
||||
os << "\n<lyxtabular version=\"3\" rows=\"" << rowinfo.size()
|
||||
<< "\" columns=\"" << colinfo.size() << "\">\n";
|
||||
os << "<features"
|
||||
<< write_attribute("rotate", "0")
|
||||
<< write_attribute("rotate", rotate)
|
||||
<< write_attribute("booktabs", booktabs)
|
||||
<< write_attribute("islongtable", is_long_tabular);
|
||||
if (is_long_tabular) {
|
||||
|
Loading…
Reference in New Issue
Block a user