[valadoc] - nested list-bug
- From: Florian Brosch <flobrosch src gnome org>
- To: svn-commits-list gnome org
- Subject: [valadoc] - nested list-bug
- Date: Mon, 22 Jun 2009 18:08:57 -0400 (EDT)
commit 1dd712de66c864541087129b7052175d00450e2f
Author: Florian Brosch <flo brosch gmail com>
Date: Tue Jun 23 00:07:02 2009 +0200
- nested list-bug
src/libvaladoc/parser.vala | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/libvaladoc/parser.vala b/src/libvaladoc/parser.vala
index f19103d..944f74d 100644
--- a/src/libvaladoc/parser.vala
+++ b/src/libvaladoc/parser.vala
@@ -1001,7 +1001,6 @@ public class Valadoc.Parser : Object {
return false;
}
- long keywordstartpos = pos;
pos++;
string keyword = this.parse_taglet_name ( null, str, strlen, ref pos, line, newlinepos, npos );
@@ -1038,6 +1037,7 @@ public class Valadoc.Parser : Object {
long strlen = str.len();
long newlinepos = 0;
+ uint counter = 0;
long line = 0;
long pos = 0;
@@ -1045,9 +1045,6 @@ public class Valadoc.Parser : Object {
return false;
}
- Gee.ArrayList<DocElement> content = new Gee.ArrayList<DocElement> ();
- uint counter = 0;
-
for ( pos++; pos<strlen; pos++ ) {
if ( str[pos] == ' '||str[pos]=='\t' ) {
continue;
@@ -1083,8 +1080,6 @@ public class Valadoc.Parser : Object {
return false;
}
- string endtag = string.nfill(lvl+1, '=');
-
GLib.StringBuilder buf = new GLib.StringBuilder();
long newlinepos = nnewlinepos;
long startpos = pos+lvl;
@@ -1139,8 +1134,8 @@ public class Valadoc.Parser : Object {
continue;
}
else if (this.parse_newline_pos (str, strlen, ref pos, ref line, ref newlinepos, true)) {
- for (space = pos;(str[pos+1]==' '||str[pos+1]=='\t'); pos++);
- space = pos-space;
+ for (;(str[pos+1]==' '||str[pos+1]=='\t'); pos++);
+ space = pos-lpos;
buf.append_len (str.offset(startpos), lpos-startpos+1);
linestart = pos+1;
@@ -1355,7 +1350,6 @@ public class Valadoc.Parser : Object {
if ( str[pos]!=tag )
return false;
-
Gee.ArrayList<ListEntryDocElement> listelements = new Gee.ArrayList<ListEntryDocElement> ();
long lspace = space;
@@ -1433,8 +1427,10 @@ public class Valadoc.Parser : Object {
this.prepend_string_taglet ( str, strlen, content, ref startpos, pos, lpos, buf );
}
}
- for ( space = 0, pos++; str[pos]==' '||str[pos]=='\t' ; pos++, space++ );
+
+ for ( space = pos, pos++; str[pos]==' '||str[pos]=='\t' ; pos++ );
this.append_string_taglet ( str, strlen, content, ref startpos, pos, lpos, buf );
+ space = pos-space;
ListEntryDocElement listeltag = (ListEntryDocElement)GLib.Object.new ( this.modules.ulistetag );
listeltag.parse ( listtype, content );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]