#436 Better HTML tab handling for space-preserving literallayout

output: HTML
open
nobody
XSL (399)
5
2010-09-22
2010-09-21
No

I work a lot with documents that use <literallayout
xml:space="preserve" class="normal">, and often these documents have
tabs within the literallayout. The stylesheets handle these correctly and
pass them through to the output document. Unfortunately, these
generally display poorly.

For HTML and XHTML, web browsers simply ignore tabs at the beginning of
the line for display purposes. It would be nice if, in addition to
handling newlines, the stylesheets would insert a span with a certain
class ("indent", maybe) around the tab. Then users could style it
appropriately so that it presents as they want it to.

If you want a patch to the existing stylesheets, just ask, and I'll provide one.

Discussion

  • brian m. carlson

    • summary: Better tab handling for space-preserving literallayout --> Better HTML tab handling for space-preserving literallayout
     
  • brian m. carlson

    A patch (and extended rationale) is available at <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597665>.

     

Log in to post a comment.