#436 Better HTML tab handling for space-preserving literallayout

output: HTML
XSL (399)

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.


  • 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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks