Hello vim-latex developers,

there is a bug in the folding functionality of the current version of vim-latex. When the \documentclass command spreads across multiple lines, the preamble is not folded by vim-latex. Consider the following example (also attached):

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fold_bug.tex
\documentclass[
        %draft,
        12pt,
    ]{article}

% This should be folded, but actually isn't :-(
\usepackage[T1]{fontenc}        % font encoding

\begin{document}
    \section{Example section}
    This is the document body.  It will be properly folded.
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Here, the \section is folded correctly, but the preamble is not. When putting the \documentclass entirely on one line, i.e., write:

\documentclass[12pt,]{article}

folding of the preamble works correctly. But then, obviously, one cannot state options line-wise, include comments, or comment out option. It would be great if this bug could be fixed. Thanks for your efforts.


~Felix
% fold_bug.tex
\documentclass[
        %draft,
        12pt,
    ]{article}

% This should be folded, but actually isn't :-(
\usepackage[T1]{fontenc}        % font encoding

\begin{document}
    \section{Example section}
    This is the document body.  It will be properly folded.
\end{document}
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to