Fossil

Diff
Login

Differences From Artifact [b07774f9b5]:

To Artifact [13e999b153]:


145
146
147
148
149
150
151

152
153
154
155




156
157
158
159
160
161
162
163
145
146
147
148
149
150
151
152




153
154
155
156

157
158
159
160
161
162
163







+
-
-
-
-
+
+
+
+
-







  const char *zLine, /* [in] The comment line being printed. */
  int indent,        /* [in] Number of spaces to indent, zero for none. */
  int trimSpace,     /* [in] Non-zero to trim leading/trailing spaces. */
  int *piIndex       /* [in/out] Pointer to first non-space character. */
){
  if( indent>0 ){
    fossil_print("%*s", indent, "");
  }
    if( trimSpace && zLine && piIndex ){
      int index = *piIndex;
      while( fossil_isspace(zLine[index]) ){ index++; }
      *piIndex = index;
  if( trimSpace && zLine && piIndex ){
    int index = *piIndex;
    while( fossil_isspace(zLine[index]) ){ index++; }
    *piIndex = index;
    }
  }
}

/*
** This function prints one logical line of a comment, stopping when it hits
** a new line -OR- runs out of space on the logical line.
*/