Tabs in codeblock being converted to spaces

XMLWordPrintable

    • 1
    • Severity 2 - Major

      Is there a way to create a macro that will convert tabs to 4 spaces?

      If you use the tabs in codeblock (using C++ language and default theme), it converts them to a single space.

      It seems that when converted to html the tab becomes a single space – so if it is possible to change it so that tab automatically inserts spaces up to column position modulo tab_spacing (maybe 4 by default).

      Example of the problem - enter this into a code block:

      tab test - should all be aligned - tab spacing is eight here
      one tabs
      eight spaces
      4 spaces then tab
      end

      Then view it in HTML or export to PDF

        1. codehtml.tiff
          71 kB
          Ellis Pratt
        2. codetabpdf.tiff
          34 kB
          Ellis Pratt
        3. codetab1.tiff
          63 kB
          Ellis Pratt

            Assignee:
            Unassigned
            Reporter:
            Ellis Pratt
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: