]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.C
* BufferParams:
[lyx.git] / src / insets / insetquotes.C
index eb7c87e454086a3daf03fd07dfb4d88d9e4f1ca6..779b78d9e48f6bf13a7aa2cf737b96329ee40667 100644 (file)
@@ -296,7 +296,7 @@ void InsetQuotes::read(Buffer const &, LyXLex & lex)
 
 
 int InsetQuotes::latex(Buffer const &, odocstream & os,
-                      OutputParams const & runparams) const
+                       OutputParams const & runparams) const
 {
        const int quoteind = quote_index[side_][language_];
        string qstr;
@@ -329,15 +329,16 @@ int InsetQuotes::latex(Buffer const &, odocstream & os,
 
 
 int InsetQuotes::plaintext(Buffer const & buf, odocstream & os,
-                          OutputParams const &) const
+                           OutputParams const &) const
 {
-       os << dispString(buf.params().language);
-       return 0;
+       docstring const str = dispString(buf.params().language);
+       os << str;
+       return str.size();
 }
 
 
 int InsetQuotes::docbook(Buffer const &, odocstream & os,
-                        OutputParams const &) const
+                         OutputParams const &) const
 {
        if (times_ == DoubleQ) {
                if (side_ == LeftQ)