HTML tag characters count towards info box width in fullscreen

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Sprawl2459
Posts: 14
Joined: Thu Aug 10, 2023 12:57 pm

HTML tag characters count towards info box width in fullscreen

Post by Sprawl2459 »

Basically what the title says. I need to format the info box content for fullscreen view, but every single tag character makes the info box wider. Using XnView MP 1.7.2.

Cheers!
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: HTML tag characters count towards info box width in fullscreen

Post by xnview »

how to reproduce?
Pierre.
User avatar
user0
XnThusiast
Posts: 1975
Joined: Sat May 09, 2015 9:37 am

Re: HTML tag characters count towards info box width in fullscreen

Post by user0 »

related
Info - add 'HTML only' mode

xnview wrote: Tue Jul 02, 2024 8:36 amhow to reproduce?
1. use code from post above (set border=1 to show where content ends)
content takes less than half of info box, but unfortunately
its width is calculated based on symbols quantity in the longest string, in our case - 1st (red)

2. add line breaks at the blue lines
info box will shrink

info_html_tags_rendering.png

need a new "html only" mode, not this weird mix of text and html tags
You do not have the required permissions to view the files attached to this post.
Sprawl2459
Posts: 14
Joined: Thu Aug 10, 2023 12:57 pm

Re: HTML tag characters count towards info box width in fullscreen

Post by Sprawl2459 »

I couldn't have described it any better. In fact, I couldn't have described it as well as you. : )
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: HTML tag characters count towards info box width in fullscreen

Post by xnview »

user0 wrote: Tue Jul 02, 2024 9:31 am 1. use code from post above (set border=1 to show where content ends)
Could you send me the text used?
Pierre.