diff --git a/src/document/dom/renderer.c b/src/document/dom/renderer.c index 041c572ac..9a4f551da 100644 --- a/src/document/dom/renderer.c +++ b/src/document/dom/renderer.c @@ -1021,7 +1021,7 @@ render_dom_document(struct cache_entry *cached, struct document *document, parser = init_sgml_parser(parser_type, doctype, &uri, 0); if (!parser) return; - + if (document->options.plain) { add_dom_stack_context(&parser->stack, &renderer, &dom_source_renderer_context_info); diff --git a/src/dom/sgml/parser.h b/src/dom/sgml/parser.h index 97be5ae19..c8f7fa7f0 100644 --- a/src/dom/sgml/parser.h +++ b/src/dom/sgml/parser.h @@ -111,7 +111,7 @@ struct sgml_parser { /** Initialise an SGML parser * * Initialise an SGML parser with the given properties. - * + * * type:: Stream or tree; one-time or persistant. * doctype:: The document type, this affects what sub type nodes are given. * uri:: The URI of the document root. diff --git a/src/dom/stack.h b/src/dom/stack.h index 0d3f6e517..153654e01 100644 --- a/src/dom/stack.h +++ b/src/dom/stack.h @@ -160,9 +160,9 @@ extern struct dom_stack_context_info dom_stack_trace_context_info; * * Define `DOM_STACK_TRACE` to have debug info about the nodes added printed to * the log. It will define add_dom_stack_tracer() to not be a no-op. - * + * * Run as: - * + * * ELINKS_LOG=/tmp/dom-dump.txt ./elinks -no-connect * * to have the debug dumped into a file. */ diff --git a/src/ecmascript/see/form.c b/src/ecmascript/see/form.c index f430c38b5..ca8fd1b81 100644 --- a/src/ecmascript/see/form.c +++ b/src/ecmascript/see/form.c @@ -396,7 +396,7 @@ js_input_focus(struct SEE_interpreter *interp, struct SEE_object *self, linknum = get_form_control_link(document, fc); /* Hiddens have no link. */ - if (linknum < 0) + if (linknum < 0) return; jump_to_link_number(ses, doc_view, linknum); @@ -604,7 +604,7 @@ form_elems_get(struct SEE_interpreter *interp, struct SEE_object *o, SEE_SET_STRING(&argv, p); if (string[0] >= '0' && string[1] <= '9') { js_form_elems_item(interp, o, o, 1, - (struct SEE_value **)&argv, res); + (struct SEE_value **)&argv, res); } else { js_form_elems_namedItem(interp, o, o, 1, (struct SEE_value **)&argv, res); @@ -689,7 +689,7 @@ js_forms_namedItem(struct SEE_interpreter *interp, struct SEE_object *self, SEE_SET_OBJECT(res, (struct SEE_object *)obj); break; - + } } mem_free(string); @@ -875,7 +875,7 @@ form_put(struct SEE_interpreter *interp, struct SEE_object *o, mem_free_set(&form->name, string); } else if (p == s_target) { mem_free_set(&form->target, string); - } + } } static int @@ -953,7 +953,7 @@ struct js_form *js_get_form_object(struct SEE_interpreter *interp, js_form->reset = SEE_cfunction_make(interp, js_form_reset, s_reset, 0); js_form->submit = SEE_cfunction_make(interp, js_form_submit, s_submit, 0); js_form->fv = fv; - + fv->ecmascript_obj = js_form; return js_form; } diff --git a/src/ecmascript/see/location.c b/src/ecmascript/see/location.c index 38beb9097..a187bebb5 100644 --- a/src/ecmascript/see/location.c +++ b/src/ecmascript/see/location.c @@ -258,7 +258,7 @@ js_location_toString(struct SEE_interpreter *interp, struct SEE_object *self, unsigned char *string = get_uri_string(vs->uri, URI_ORIGINAL); struct SEE_string *str = string_to_SEE_string(interp, string); - mem_free_if(string); + mem_free_if(string); checktime(interp); SEE_SET_STRING(res, str); diff --git a/src/ecmascript/see/unibar.c b/src/ecmascript/see/unibar.c index ecbfb5074..ca10f8d80 100644 --- a/src/ecmascript/see/unibar.c +++ b/src/ecmascript/see/unibar.c @@ -94,7 +94,7 @@ unibar_get(struct SEE_interpreter *interp, struct SEE_object *o, struct session_status *status = &doc_view->session->status; struct js_unibar_object *obj = (struct js_unibar_object *)o; unsigned char bar = obj->bar; - + checktime(interp); if (p == s_visible) { #define unibar_fetch(bar) \