1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #674 wontfix

Comment starting characters shift tab stops in LaTeX formatter

created an issue

Tabs following a comment beginning will not be correctly aligned to the fixed tab stop positions, but shifted to the right by the length of the comment beginning character sequence.

So, e.g. in Perl the 'foo' in the line

\#/[TAB]foo \[TAB]bar

will appear one character right of 'bar'.

Comments (2)

  1. Georg Brandl repo owner

    fancyvrb has an option "obeytabs=true" that should do what you expect (and what would be correct.) Unfortunately, it looks like fancyvrb cannot handle this when the tabs are in a nested command inside the Verbatim environment, and doesn't display anything after the first tab character.

    So it seems that if you want tabs to be displayed correctly, you have to have them expanded by Pygments using the "tabsize=X" option.

  2. Anonymous

    http://www.kingsjerseysshop.com/19-mike-richards-jersey Mike Richards Jersey http://www.kingsjerseysshop.com/17-jonathan-quick-jersey Jonathan Quick Jersey http://www.kingsjerseysshop.com/16-dwight-king-jersey Dwight King Jersey http://www.kingsjerseysshop.com/6-anze-kopitar-jersey Anze Kopitar Jersey http://www.kingsjerseysshop.com/7-drew-doughty-jersey Drew Doughty Jersey http://www.kingsjerseysshop.com/8-dustin-brown-jersey Dustin Brown Jersey http://www.kingsjerseysshop.com/9-martin-mcsorley-jersey Martin McSorley Jersey http://www.kingsjerseysshop.com/11-ryan-smyth-jersey Ryan Smyth Jersey http://www.kingsjerseysshop.com/12-wayne-gretzky-jersey Wayne Gretzky Jersey http://www.devilsjerseystore.com/7-ilya-kovalchuk-jersey Ilya Kovalchuk Jersey http://www.devilsjerseystore.com/12-patrik-elias-jersey Patrik Elias Jersey http://www.devilsjerseystore.com/13-scott-stevens-jersey Scott Stevens Jersey http://www.devilsjerseystore.com/8-jamie-langenbrunner-jersey Jamie Langenbrunner Jersey http://www.devilsjerseystore.com/9-ken-daneyko-jersey Ken Daneyko Jersey http://www.devilsjerseystore.com/10-martin-brodeur-jersey Martin Brodeur Jersey http://www.devilsjerseystore.com/14-zach-parise-jersey Zach Parise Jersey http://www.isabelmarantwedgesneakers.com/4-isabel-marant-sneakers Isabel Marant Sneakers http://www.isabelmarantwedgesneakers.com/Isabel Marant Shoes http://www.isabelmarantwedgesneakers.com/2-isabel-marant-boots Isabel Marant Boots http://www.isabelmarantwedgesneakers.com/3-isabel-marant-sandals Isabel Marant Sandals http://www.aj-fr.com/ Air Jordan http://www.aj-fr.com/3-Air-Jordan Air Jordan 1 http://www.aj-fr.com/18-Air-Jordan Air Jordan 3 http://www.aj-fr.com/19-Air-Jordan Air Jordan 4 http://www.aj-fr.com/20-Air-Jordan Air Jordan 5 http://www.aj-fr.com/21-Air-Jordan Air Jordan 6

  3. Log in to comment