From f87cb49e2d5f98fa0c447dd4fbbafef4aca6fe8c Mon Sep 17 00:00:00 2001 From: Frank Lanitz Date: Sun, 8 Feb 2009 13:01:44 +0000 Subject: [PATCH] Don't put closing td tag into a new line during auto completion of a HTML table git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3562 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 7 +++++++ src/editor.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8dd7b044..8ac08c9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-08 Frank Lanitz + + * src/editor.c: + Don't put closing td tag into a new line during auto completion of a + HTML table. + + 2009-02-06 Enrico Tröger * src/main.c: diff --git a/src/editor.c b/src/editor.c index 0b1b74c4..b19cac73 100644 --- a/src/editor.c +++ b/src/editor.c @@ -3,6 +3,7 @@ * * Copyright 2005-2009 Enrico Tröger * Copyright 2006-2009 Nick Treleaven + * Copyright 2009 Frank Lanitz * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2249,8 +2250,7 @@ static void auto_table(GeanyEditor *editor, gint pos) indent_str = "\t"; table = g_strconcat("\n", indent_str, "\n", - indent_str, indent_str, "\n", - indent_str, indent_str, "\n", + indent_str, indent_str, " \n", indent_str, "\n", NULL); editor_insert_text_block(editor, table, pos, -1,