Skip to content

indent problem for sweave chunks within indented text #2

Open
@dankelley

Description

@dankelley

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions