http://www.perlmonks.org?node_id=487967


in reply to More ways to download code...

I mostly use lynx to browse Perlmonks (for personal and technical reasons that are beyond the point here).

The problem is that, before this fateful change, I used to see the code blocks well formatted in lynx. Now, they appear all like flat text, even after removing the mandatory "download" link.

Is there any chance that this change can be made optional, so that the site looks like it used to be for us poor text mode diehards?

Thanks.

Replies are listed 'Best First'.
Re^2: More ways to download code... (lynx fixed)
by tye (Sage) on Aug 31, 2005 at 03:48 UTC

    I believe this is fixed. In any case, code blocks look better in lynx (but only when the in-line download links are disabled). I've also disabled the in-line download links for Anonymous Monk (for now).

    Let me know if the code blocks look as good as they used to.

    Thanks.

    Update: Looking at the HTML produced and how lynx rendered it, my only guess was that having a DIV inside of the PRE made lynx stop honoring the PRE. So now the inner DIV is not produced if there is no need for two containers (one containing just the code and one containing the code and the "download" link). Adjustments welcome.

    - tye        

      Thanks tye.

      lynx's rendering now is back to readable.

Re^2: More ways to download code...
by demerphq (Chancellor) on Aug 30, 2005 at 22:33 UTC

    Yeah ok, ill do my best. But it would be helpful to know what the cause is, can you play around with the markup until it looks ok for you and then let us know the cause?

    ---
    $world=~s/war/peace/g