commit 3b96c6e901904cb7d5e1c13e76b84541d090075a
Author: Scott Kostyshak <[email protected]>
Date:   Thu Oct 2 01:29:00 2014 -0400

    Remove line in text export of inline math (#9282)
    
    If there is only one row, a new line should not be appended. If
    there is more than one row, the new line should not be appended for
    the last row.
    
    For example, if in LyX there was "as you can see in $x$ there..." a
    copy/paste would lead to a newline after "x".

diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 386c373..4b9e0ce 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -1970,7 +1970,8 @@ int InsetMathHull::plaintext(odocstringstream & os,
                        // and do not include the newline.
                        if (op.for_toc || op.for_tooltip || oss.str().size() >= 
max_length)
                                break;
-                       wi << "\n";
+                        if (r < nrows() - 1)
+                               wi << "\n";
                }
        }
        docstring const str = oss.str();

Reply via email to