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
        2. codetab1.tiff
          63 kB
        3. codetabpdf.tiff
          34 kB

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

              Created:
              Updated:
              Resolved: