Skip to content

Commit

Permalink
FIXED: html to text translation float right
Browse files Browse the repository at this point in the history
This patch fixes handling of inline style ``float:right`` and dealing with
multiple flush-right elements in a block.
  • Loading branch information
JanWielemaker committed Oct 24, 2023
1 parent 7f0b8ab commit d5c6e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion library/lynx/format.pl
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@
S = b(_,_),
!,
float_right_space(T0, T, R).
float_right_space(Line, Line, []).
float_right_space(Line0, Line, Right) :-
do_float_right(Line0, Line, Right).


%! space_dim(+Line, -SpaceVars, -Width)
Expand Down
4 changes: 2 additions & 2 deletions library/lynx/html_style.pl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

applicable_style(_, Attrs, CSS) :-
memberchk(style=Style, Attrs),
style_css_attrs(Style, CSS),
text_style(CSS).
style_css_attrs(Style, CSS0),
include(text_style, CSS0, CSS).
applicable_style(El, Attrs, CSS) :-
html_text:style(El, Cond, CSS),
( eval(Cond, Attrs)
Expand Down

0 comments on commit d5c6e90

Please sign in to comment.