You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/02/17 06:06:23 UTC
[lucy-commits] svn commit: r1071502 - /incubator/lucy/trunk/clownfish/src/CFCDocuComment.c
Author: marvin
Date: Thu Feb 17 05:06:23 2011
New Revision: 1071502
URL: http://svn.apache.org/viewvc?rev=1071502&view=rev
Log:
Don't inadvertently strip whitespace from indented code samples in
DocuComments.
Modified:
incubator/lucy/trunk/clownfish/src/CFCDocuComment.c
Modified: incubator/lucy/trunk/clownfish/src/CFCDocuComment.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCDocuComment.c?rev=1071502&r1=1071501&r2=1071502&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCDocuComment.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCDocuComment.c Thu Feb 17 05:06:23 2011
@@ -64,9 +64,7 @@ CFCDocuComment_strip(char *comment)
i++;
}
if (comment[i] == '*') { i++; }
- while (isspace(comment[i]) && comment[i] != '\n' && i < max) {
- i++;
- }
+ if (comment[i] == ' ') { i++; }
}
if (i < max) {
scratch[j++] = comment[i];