From 3f5c1bb73afc3f0fdd84a8298526ba214860f702 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 20 Sep 2009 22:58:55 +0000 Subject: [PATCH] Correctly reinitialize ind when successive lines are to be indented. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31421 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/lstrings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index 62d5b92732..178e571a64 100644 --- a/src/support/lstrings.cpp +++ b/src/support/lstrings.cpp @@ -966,7 +966,7 @@ vector wrapToVec(docstring const & str, int ind, } retval.push_back(s.substr(0, i)); s = indent + s.substr(i); - ind = 0; + ind = indent.size(); } if (!s.empty()) retval.push_back(s);