mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
More detailed element*.linebreak description
This commit is contained in:
parent
7a91098135
commit
31bdf06d8f
@ -131,6 +131,8 @@ struct html_element {
|
|||||||
unsigned char *name;
|
unsigned char *name;
|
||||||
int namelen;
|
int namelen;
|
||||||
unsigned char *options;
|
unsigned char *options;
|
||||||
|
/* See document/html/parser/parse.c's element_info.linebreak
|
||||||
|
* description. */
|
||||||
int linebreak;
|
int linebreak;
|
||||||
struct frameset_desc *frameset;
|
struct frameset_desc *frameset;
|
||||||
|
|
||||||
|
@ -404,10 +404,16 @@ struct element_info {
|
|||||||
* in start_element() (which is also where we call these handlers). */
|
* in start_element() (which is also where we call these handlers). */
|
||||||
element_handler_T *func;
|
element_handler_T *func;
|
||||||
|
|
||||||
/* Basically something like how many line-breaks to put before
|
/* How many line-breaks to ensure we have before and after an element.
|
||||||
* (and sometimes after) an element. Also, for various element closing
|
* Value of 1 means the element will be on a line on its own, value
|
||||||
* precedence heuristics, a value of zero signifies an inline element
|
* of 2 means that it will also have empty lines before and after.
|
||||||
* and a non-zero value indicates a block element. */
|
* Note that this does not add up - it just ensures that there is
|
||||||
|
* at least so many linebreaks, but does not add more if that is the
|
||||||
|
* case. Therefore, something like e.g. </pre></p> will add only two
|
||||||
|
* linebreaks, not four. */
|
||||||
|
/* In some stack killing logic, we use some weird heuristic based on
|
||||||
|
* whether an element is block or inline. That is determined from
|
||||||
|
* whether this attribute is zero on non-zero. */
|
||||||
int linebreak;
|
int linebreak;
|
||||||
|
|
||||||
enum element_type type;
|
enum element_type type;
|
||||||
|
Loading…
Reference in New Issue
Block a user