]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetspecialchar.C
index 7ed1ea8489cbae9250b301601e10480647e119c3..98f07bcae0e4cdb951838ef83575a34276fbf9a4 100644 (file)
@@ -192,28 +192,28 @@ int InsetSpecialChar::latex(Buffer const &, odocstream & os,
 
 
 int InsetSpecialChar::plaintext(Buffer const &, odocstream & os,
-                           OutputParams const &) const
+                                OutputParams const &) const
 {
        switch (kind_) {
        case HYPHENATION:
        case LIGATURE_BREAK:
-               break;
+               return 0;
        case END_OF_SENTENCE:
                os << '.';
-               break;
+               return 1;
        case LDOTS:
                os << "...";
-               break;
+               return 3;
        case MENU_SEPARATOR:
                os << "->";
-               break;
+               return 2;
        }
        return 0;
 }
 
 
 int InsetSpecialChar::docbook(Buffer const &, odocstream & os,
-                             OutputParams const &) const
+                              OutputParams const &) const
 {
        switch (kind_) {
        case HYPHENATION: