Fix leading/trailing mixed whitespace

This commit is contained in:
Wilson Snyder
2008-06-12 12:03:47 -04:00
parent 3073db4e81
commit 499f98a51c
21 changed files with 65 additions and 65 deletions
+2 -2
View File
@@ -707,7 +707,7 @@ int V3PreProcImp::getToken() {
}
}
case ps_DEFVALUE: {
static string newlines;
static string newlines;
newlines = "\n"; // Always start with trailing return
if (tok == VP_DEFVALUE) {
// Remove returns
@@ -735,7 +735,7 @@ int V3PreProcImp::getToken() {
// Remove leading whitespace
unsigned leadspace = 0;
while (m_lexp->m_defValue.length() > leadspace
&& isspace(m_lexp->m_defValue[leadspace])) leadspace++;
&& isspace(m_lexp->m_defValue[leadspace])) leadspace++;
if (leadspace) m_lexp->m_defValue.erase(0,leadspace);
// Remove trailing whitespace
unsigned trailspace = 0;