Revision: 3408 http://geany.svn.sourceforge.net/geany/?rev=3408&view=rev Author: ntrel Date: 2008-12-19 17:31:59 +0000 (Fri, 19 Dec 2008)
Log Message: ----------- Add comment about improving/fixing parsing; allow section names of length 3.
Modified Paths: -------------- trunk/tagmanager/rest.c
Modified: trunk/tagmanager/rest.c =================================================================== --- trunk/tagmanager/rest.c 2008-12-19 17:15:52 UTC (rev 3407) +++ trunk/tagmanager/rest.c 2008-12-19 17:31:59 UTC (rev 3408) @@ -57,6 +57,8 @@ } }
+/* TODO: Parse any section with ispunct() underlining, in the order of first use. + * Also parse overlining & underlining as higher-level sections. */ static void findRestTags (void) { vString *name = vStringNew (); @@ -64,8 +66,10 @@
while ((line = fileReadLine ()) != NULL) { - if (strlen((const char*) line) > 3 && vStringLength(name) > 0 && - ! strstr((const char*) line, " ")) + int line_len = strlen((const char*) line); + + if (line_len >= 3 && vStringLength(name) > 0 && + ! strstr((const char*) line, " ")) /* don't parse table borders */ { if (strncmp((const char*) line, "===", 3) == 0) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.