]> git.lyx.org Git - features.git/commitdiff
Fix #7549, due to a problem in exporting to plaintext a
authorTommaso Cucinotta <tommaso@lyx.org>
Wed, 11 May 2011 19:07:01 +0000 (19:07 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Wed, 11 May 2011 19:07:01 +0000 (19:07 +0000)
multicell inset, where we now export all of the cells
separated by "\t", instead of only the first cell.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38713 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp
status.20x

index 308ea599eee55ce23ddf817c72ffadb2a77e8e9f..4e66925d2013435daefaa79684b88800efefb3e1 100644 (file)
@@ -1897,7 +1897,8 @@ int InsetMathHull::plaintext(odocstream & os, OutputParams const &) const
                if (type_ == hullRegexp)
                        write(wi);
                else
-                       wi << cell(0);
+                       for (idx_type i = 0; i < nargs(); ++i)
+                               wi << (i == 0 ? "" : "\t") << cell(i);
                docstring const str = oss.str();
                os << str;
                return str.size();
index 6499f720411edacbc2519705a587c752659a23c3..673409dd880ff26fa6b86471db74c6fe074a307d 100644 (file)
@@ -66,6 +66,9 @@ What's new
 
 - Fixed XHTML output for tables that use multirow.
 
+- Fixed export to plaintext of, as well as searching within,
+  a document containing aligned and other multi-cell environments
+  (bug ##7549).
 
 * USER INTERFACE