mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Drop obsolete, commented-out code in put_chars
Drop some code for superscript and subscript handling that was deleted in commit 65016cdca4364f18b8916a1c41c3453074466a27, then added back with the UTF-8 merge in commit 2a6125e3d0407b588eb286d4d0ff5c98c23ebda9, and then disabled in commit 1b653b97657370b3f0e5f5b4b39b9637e9547ae9.
This commit is contained in:
parent
cccab0462a
commit
948d010088
@ -1557,27 +1557,6 @@ put_chars(struct html_context *html_context, unsigned char *chars, int charslen)
|
||||
set_hline(html_context, chars, charslen, link_state);
|
||||
|
||||
if (link_state != LINK_STATE_NONE) {
|
||||
#if 0
|
||||
/* This all code is from utf8 branch */
|
||||
#define is_drawing_subs_or_sups() \
|
||||
((format.style.attr & AT_SUBSCRIPT \
|
||||
&& html_context->options->display_subs) \
|
||||
|| (format.style.attr & AT_SUPERSCRIPT \
|
||||
&& html_context->options->display_sups))
|
||||
|
||||
/* We need to update the current @link_state because <sub> and
|
||||
* <sup> tags will output to the canvas using an inner
|
||||
* put_chars() call which results in their process_link() call
|
||||
* will ``update'' the @link_state. */
|
||||
if (link_state == LINK_STATE_NEW
|
||||
&& (is_drawing_subs_or_sups()
|
||||
|| update_after_subscript != renderer_context.subscript)) {
|
||||
link_state = get_link_state(html_context);
|
||||
}
|
||||
|
||||
#undef is_drawing_subs_or_sups
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_UTF_8
|
||||
process_link(html_context, link_state, chars, charslen,
|
||||
cells);
|
||||
|
Loading…
x
Reference in New Issue
Block a user