]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.C
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / output_plaintext.C
index f363c0b1549e1fcd490bb025bb722d86a2877e95..ae70ac44d14fae4d71e5ec022be9c72b044c6ad0 100644 (file)
@@ -152,7 +152,7 @@ void writePlaintextParagraph(Buffer const & buf,
                        os << _("Abstract") << "\n\n";
                        currlinelen = 0;
                } else {
-                       docstring const abst = _("Abstract") + from_ascii(": ");
+                       docstring const abst = _("Abstract: ");
                        os << abst;
                        currlinelen += abst.length();
                }
@@ -164,7 +164,7 @@ void writePlaintextParagraph(Buffer const & buf,
                                os << _("References") << "\n\n";
                                currlinelen = 0;
                        } else {
-                               docstring const refs = _("References") + from_ascii(": ");
+                               docstring const refs = _("References: ");
                                os << refs;
                                currlinelen += refs.length();
                        }
@@ -215,7 +215,7 @@ void writePlaintextParagraph(Buffer const & buf,
 
                case ' ':
                        if (runparams.linelen > 0 &&
-                           currlinelen + word.length() > runparams.linelen - 10) {
+                           currlinelen + word.length() > runparams.linelen) {
                                os << '\n';
                                pair<int, docstring> p = addDepth(depth, ltype_depth);
                                os << p.second;
@@ -233,17 +233,17 @@ void writePlaintextParagraph(Buffer const & buf,
 
                default:
                        word += c;
-                       if (runparams.linelen > 0 &&
-                           currlinelen + word.length() > runparams.linelen)
-                       {
-                               os << '\n';
-                               pair<int, docstring> p = addDepth(depth, ltype_depth);
-                               os << p.second;
-                               currlinelen = p.first;
-                       }
                        break;
                }
        }
+
+       if (runparams.linelen > 0 &&
+           currlinelen + word.length() > runparams.linelen) {
+               os << '\n';
+               pair<int, docstring> p = addDepth(depth, ltype_depth);
+               os << p.second;
+               currlinelen = p.first;
+       }
        os << word;
 }