1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

More detailed element*.linebreak description

This commit is contained in:
Petr Baudis 2005-09-22 21:52:12 +02:00 committed by Petr Baudis
parent 7a91098135
commit 31bdf06d8f
2 changed files with 12 additions and 4 deletions

View File

@ -131,6 +131,8 @@ struct html_element {
unsigned char *name;
int namelen;
unsigned char *options;
/* See document/html/parser/parse.c's element_info.linebreak
* description. */
int linebreak;
struct frameset_desc *frameset;

View File

@ -404,10 +404,16 @@ struct element_info {
* in start_element() (which is also where we call these handlers). */
element_handler_T *func;
/* Basically something like how many line-breaks to put before
* (and sometimes after) an element. Also, for various element closing
* precedence heuristics, a value of zero signifies an inline element
* and a non-zero value indicates a block element. */
/* How many line-breaks to ensure we have before and after an element.
* Value of 1 means the element will be on a line on its own, value
* of 2 means that it will also have empty lines before and after.
* 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;
enum element_type type;