J2Kbr / GtunerIV

Gtuner IV - Titan Two's software bug report.
http://www.consoletuner.com
25 stars 4 forks source link

Interactive Configuration: display of ul li tags adds extra lines #376

Closed Scachi closed 4 years ago

Scachi commented 4 years ago

Example:

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

I would expect this: ( from https://www.w3schools.com/tags/tag_ul.asp ) image

But I get this: (from my IC, same code used as above) image

Can this be fixed / improved ? ul (opening or closing arg) may add a linebreak already, nested lists are having this issue in every line.

<ul>
    <li>File: z__default.git</li>
    <ul>
        <li> HIP + ADS : the mouse xy movement (default for hip, alternate for ads)</li>
        <li> HIP : mouse mapping</li>
        <li> HIP : keyboard mapping</li>
    </ul>
    <li>File: z_ads.git</li>
    <ul>
    <li> ADS : mouse mapping</li>
    <li> ADS : keyboard mapping</li>
    </ul>
</ul>

image

The current implementation of automatically adding line breaks works fine for a lot of IC stuff, but it is messing up quite a bit for tables and similar html tags. Maybe it is possible to add a check for 'html' tag in a multiline shodrtdesc entry to disable that automatic handling by the user, that new line insert it driving me crazy almost every script.

<html>
some multi line section 
in here 
where no automatic linebreaks are done at all
</html>

so the above will appear as a single line then in that case. This way I can use all supported html tags without having to care about what gtuner does and what I expect from normal html tags. Or add a "htmlshortdesc" tag, or add some flag for the IC creator to use to disable auto linebreaks for the whole IC shortdesc entries if this is easier. Or something like:

htmldesc      = <<<MULTILINE
no auto linebreak within this section
MULTILINE
J2Kbr commented 4 years ago

Hi Scachi. I believe to have fixed the issue, here is the result with your example code above: image Will be available on Gtuner 1.08B-10. If after the update you still encounter problems, we then create the special htmldesc config key.