You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`eww-open-file' (and whatever other rendering tool might be used) uses
the size of the selected window to determine the width of lines in its
rendered output. this commit ensures that (even though eww can only
choose one window among all the windows that may be displaying it) if a
window is displaying an eww buffer, eww will select one of those
windows' sizes to render into, thus ensuring that at least one window
will be rendered correctly. in the common case, only a single window is
used to preview the output, which means this works perfectly.
in other words, the failing case was that if the window displaying a
markdown buffer was a different width than the window displaying the
eww (or other function) buffer, the eww window would render a page
suited for the width of the markdown buffer window, NOT the eww buffer
window. this commit ensures the existing eww buffer window is used to
determine the width of the rendered output, and adds a test to that
effect.
for testing, we could modify the width of the eww buffer window, and
ensure that eww renders to that changed width, which would be more
appropriate, but i don't know how to check what width eww renders
into. the given test should accomplish the same goal, by checking that
the eww buffer window is selected when eww renders into it.
check for libxml when trying to use eww
ensure eww renders to correct size at first export
also refactor duplicated code to display exported buffer into shared
function for sync and async export
0 commit comments