Revision: 5335
http://geany.svn.sourceforge.net/geany/?rev=5335&view=rev
Author: ntrel
Date: 2010-10-27 16:12:05 +0000 (Wed, 27 Oct 2010)
Log Message:
-----------
Restore check for malformed XML tag from last commit.
Modified Paths:
--------------
trunk/src/utils.c
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2010-10-27 14:20:18 UTC (rev 5334)
+++ trunk/src/utils.c 2010-10-27 16:12:05 UTC (rev 5335)
@@ -290,7 +290,7 @@
return NULL;
}
begin = &sel[0];
- cur = &sel[size-1];
+ cur = &sel[size - 1];
/* Skip to the character before the closing brace */
while (cur > begin)
@@ -309,6 +309,8 @@
{
if (*cur == '<')
break;
+ else if (*cur == '>')
+ break;
--cur;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5328
http://geany.svn.sourceforge.net/geany/?rev=5328&view=rev
Author: ntrel
Date: 2010-10-26 15:33:16 +0000 (Tue, 26 Oct 2010)
Log Message:
-----------
Sort filetypes_by_title last instead of on insertion to prevent
exponential time.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/filetypes.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-10-26 15:20:53 UTC (rev 5327)
+++ trunk/ChangeLog 2010-10-26 15:33:16 UTC (rev 5328)
@@ -6,6 +6,9 @@
Add docs for 'Ensure consistent line endings' pref.
* src/keyfile.c:
Change default for 'Override Geany keybindings' to on.
+ * src/filetypes.c:
+ Sort filetypes_by_title last instead of on insertion to prevent
+ exponential time.
2010-10-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c 2010-10-26 15:20:53 UTC (rev 5327)
+++ trunk/src/filetypes.c 2010-10-26 15:33:16 UTC (rev 5328)
@@ -479,7 +479,8 @@
g_ptr_array_add(filetypes_array, ft);
g_hash_table_insert(filetypes_hash, ft->name, ft);
- filetypes_by_title = g_slist_insert_sorted(filetypes_by_title, ft, cmp_filetype);
+ /* list will be sorted later */
+ filetypes_by_title = g_slist_prepend(filetypes_by_title, ft);
}
@@ -556,6 +557,9 @@
}
init_custom_filetypes(app->datadir);
init_custom_filetypes(utils_build_path(app->configdir, GEANY_FILEDEFS_SUBDIR, NULL));
+
+ /* sort last instead of on insertion to prevent exponential time */
+ filetypes_by_title = g_slist_sort(filetypes_by_title, cmp_filetype);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5326
http://geany.svn.sourceforge.net/geany/?rev=5326&view=rev
Author: ntrel
Date: 2010-10-26 15:13:42 +0000 (Tue, 26 Oct 2010)
Log Message:
-----------
Add docs for 'Ensure consistent line endings' pref.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-10-26 15:11:06 UTC (rev 5325)
+++ trunk/ChangeLog 2010-10-26 15:13:42 UTC (rev 5326)
@@ -2,6 +2,8 @@
* src/interface.c, doc/geany.txt, doc/geany.html, geany.glade:
Edit XML tag autocompletion pref and tooltip to include HTML.
+ * doc/geany.txt, doc/geany.html:
+ Add docs for 'Ensure consistent line endings' pref.
2010-10-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2010-10-26 15:11:06 UTC (rev 5325)
+++ trunk/doc/geany.html 2010-10-26 15:13:42 UTC (rev 5326)
@@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
-<meta name="date" content="2010-10-15" />
+<meta name="date" content="2010-10-26" />
<style type="text/css">
/*
@@ -139,7 +139,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2010-10-15</td></tr>
+<td>2010-10-26</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.20</td></tr>
</tbody>
@@ -2475,6 +2475,9 @@
<dl class="docutils">
<dt>Ensure newline at file end</dt>
<dd>Add a newline at the end of the document if one is missing.</dd>
+<dt>Ensure consistent line endings</dt>
+<dd>Ensures that newline characters always get converted before
+saving, avoiding mixed line endings in the same file.</dd>
<dt>Strip trailing spaces</dt>
<dd>Remove the trailing spaces on each line of the document.</dd>
<dt>Replace tabs by space</dt>
@@ -6264,7 +6267,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2010-10-26 15:07 UTC.
+Generated on: 2010-10-26 15:12 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: trunk/doc/geany.txt
===================================================================
--- trunk/doc/geany.txt 2010-10-26 15:11:06 UTC (rev 5325)
+++ trunk/doc/geany.txt 2010-10-26 15:13:42 UTC (rev 5326)
@@ -2181,6 +2181,10 @@
Ensure newline at file end
Add a newline at the end of the document if one is missing.
+Ensure consistent line endings
+ Ensures that newline characters always get converted before
+ saving, avoiding mixed line endings in the same file.
+
Strip trailing spaces
Remove the trailing spaces on each line of the document.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.