diff --git a/ChangeLog b/ChangeLog index 098cfa26..3fc26b9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ * src/editor.c: Break is_comment() into comment and string detection, each called in is_code_style(). + * plugins/export.c: + Fix using correct hard tab width for HTML export, not just LaTeX. 2008-08-08 Nick Treleaven diff --git a/plugins/export.c b/plugins/export.c index deec4374..bdc93b19 100644 --- a/plugins/export.c +++ b/plugins/export.c @@ -627,7 +627,7 @@ static void write_html_file(GeanyDocument *doc, const gchar *filename, gboolean case '\t': { gint j; - gint tab_width = p_editor->get_indent_prefs(editor)->tab_width; + gint tab_width = p_sci->get_tab_width(editor->sci); gint tab_stop = tab_width - (column % tab_width); column += tab_stop - 1; /* -1 because we add 1 at the end of the loop */