Mercurial > hg > octave-lyh
diff doc/interpreter/munge-texi.cc @ 12174:db1f49eaba6b
whitespace fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 26 Jan 2011 23:49:42 -0500 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/doc/interpreter/munge-texi.cc +++ b/doc/interpreter/munge-texi.cc @@ -75,8 +75,8 @@ char buf[16]; int i = 0; buf[i++] = static_cast<char> (c); - - if (( buf[i++] = static_cast<char> (is.get ())) == 's' + + if (( buf[i++] = static_cast<char> (is.get ())) == 's' && (buf[i++] = static_cast<char> (is.get ())) == 'e' && (buf[i++] = static_cast<char> (is.get ())) == 'e' && (buf[i++] = static_cast<char> (is.get ())) == 'a' @@ -86,16 +86,16 @@ && (buf[i++] = static_cast<char> (is.get ())) == '{') { doc += "@seealso{"; - + bool first = true; - + // process @seealso parameters while ((c = is.get ()) != EOF && c != doc_delim - && c != '}') + && c != '}') { // ignore whitespace and delimiters - while ( c == ' ' + while ( c == ' ' || c == '\t' || c == '\r' || c == '\n' @@ -103,14 +103,14 @@ { c = is.get (); } - + // test for end of @seealso - if (c == '}') + if (c == '}') break; - + // get function name std::string function_name; - do + do function_name += static_cast<char> (c); while ((c = is.get ()) != EOF && c != doc_delim @@ -132,7 +132,7 @@ + function_name + "}"; // test for end of @seealso - if (c == '}') + if (c == '}') break; } if (c == '}')