mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Trim trailing whitespaces.
This commit is contained in:
parent
768a962077
commit
5685221512
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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 <url>
|
||||
*
|
||||
* to have the debug dumped into a file. */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user