]> git.lyx.org Git - features.git/commitdiff
preamble.cpp: fix whitespace
authorUwe Stöhr <uwestoehr@web.de>
Sun, 9 Dec 2007 15:26:31 +0000 (15:26 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 9 Dec 2007 15:26:31 +0000 (15:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22040 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 3ce6ec7b4fc4d32ca02af8972911505ed47ca3a6..4f33519c00b50a737b79c4e071fbc3b445632a7d 100644 (file)
@@ -203,15 +203,15 @@ void add_package(string const & name, vector<string> & options)
 // Given is a string like "scaled=0.9", return 0.9 * 100
 string const scale_as_percentage(string const & scale)
 {
-    string::size_type pos = scale.find('=');
-    if (pos != string::npos) {
-       string value = scale.substr(pos + 1);
-       if (isStrDbl(value))
-           return convert<string>(100 * convert<double>(value));
-    }
-    // If the input string didn't match our expectations.
-    // return the default value "100"
-    return "100";
+       string::size_type pos = scale.find('=');
+       if (pos != string::npos) {
+               string value = scale.substr(pos + 1);
+               if (isStrDbl(value))
+                       return convert<string>(100 * convert<double>(value));
+       }
+       // If the input string didn't match our expectations.
+       // return the default value "100" 
+       return "100";
 }