Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indent problem for sweave chunks within indented text #2

Open
dankelley opened this issue Jan 15, 2011 · 2 comments
Open

indent problem for sweave chunks within indented text #2

dankelley opened this issue Jan 15, 2011 · 2 comments

Comments

@dankelley
Copy link

Thanks for developing the plugin in the open. I am finding that indenting of Sweave chunks fails, if the text above was indented. This is illustrated below. Perhaps I'm doing something wrong?

\documentstyle{article}
\begin{document}

The following has the Sweave part at first of line
<<>>=
pi <- 10
@

The following has bad indenting.  The opening of the block is
indented, so ``R CMD Sweave'' won't detect the block.  Also, the line
after the block is improperly indented.

\begin{itemize}
    \item this will be bad:

        <<>>=
cat('pi=',pi,'\n')
@
after

\item after
\end{itemize}
\end{document}
@jimmyharris
Copy link
Owner

sorry about taking so long to get back to you. I should really mention that this is my own persional fork of an existing plugin and i have no association with the original authors. You may wish to check out their updated version of this code using at http://www.vim.org/scripts/script.php?script_id=2628

@dankelley
Copy link
Author

Thanks very much. As it turns out, I contacted the original author, and he has fixed the bug.

https://github.com/vim-scripts/Vim-R-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants